CVE-2025-56761: Memos Vulnerable to Stored Cross-Site Scripting
Memos 0.22 is vulnerable to Stored Cross site scripting (XSS) vulnerabilities by the upload attachment and user avatar features. Memos does not verify the content type of the uploaded data and serve it back as is. An authenticated attacker can use this to elevate their privileges when the stored XSS is viewed by an admin.
Published Sep 4, 2025 · Updated Sep 5, 2025
Affected packages
github.com/usememos/memos
- Ecosystem
- Go
- Affected
- <= 0.22.0
- Fixed in
- No patched version yet
- Check
go list -m github.com/usememos/memos
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Memos 0.22 is vulnerable to Stored Cross site scripting (XSS) vulnerabilities by the upload attachment and user avatar features. Memos does not verify the content type of the uploaded data and serve it back as is. An authenticated attacker can use this to elevate their privileges when the stored XSS is viewed by an admin.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-56761
- https://github.com/usememos/memos/blob/v0.24.0/server/router/api/v1/user_service.go#L147
- https://github.com/usememos/memos/blob/v0.24.4/server/router/api/v1/resource_service.go#L48
- https://www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples
- https://github.com/advisories/GHSA-cgrg-86m5-xm4w
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-6634
Memos has an Incorrect Privilege Assignment issue
low6.3No fixApr 20, 2026CVE-2025-65795
memos vulnerability allows the creation of arbitrary accounts
high7.5Dec 8, 2025CVE-2025-65796
memos vulnerability allows arbitrarily reactions deletion
medium4.3Dec 8, 2025CVE-2025-65797
memos vulnerability allows arbitrarily modification or deletion registered identity providers
medium6.5Dec 8, 2025CVE-2025-65798
memos vulnerability allows arbitrarily modification or deletion of attachments
medium5.4Dec 8, 2025CVE-2025-65799
memos lacks file name validation or verification
medium4.3Dec 8, 2025
