Memos Vulnerable to Stored Cross-Site Scripting in github.com/usememos/memos
Memos Vulnerable to Stored Cross-Site Scripting in github.com/usememos/memos
02 / AFFECTED SOFTWARE
Affected packages
2 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
Memos Vulnerable to Stored Cross-Site Scripting in github.com/usememos/memos
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.
05 / REFERENCES
Further evidence
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/56xxx/CVE-2025-56761.json
- 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://nvd.nist.gov/vuln/detail/CVE-2025-56761
- https://www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples/
- https://github.com/advisories/GHSA-cgrg-86m5-xm4w
- https://www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples
- https://github.com/usememos/memos