Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/usememos/memos
  4. ›
  5. CVE-2025-56761

CVE-2025-56761: Memos Vulnerable to Stored Cross-Site Scripting

September 4, 2025 (updated September 5, 2025)

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

  • github.com/advisories/GHSA-cgrg-86m5-xm4w
  • github.com/usememos/memos
  • github.com/usememos/memos/blob/v0.24.0/server/router/api/v1/user_service.go
  • github.com/usememos/memos/blob/v0.24.4/server/router/api/v1/resource_service.go
  • nvd.nist.gov/vuln/detail/CVE-2025-56761
  • www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples

Code Behaviors & Features

Detect and mitigate CVE-2025-56761 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.22.0

Solution

Unfortunately, there is no solution available yet.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/usememos/memos/CVE-2025-56761.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 10 Sep 2025 12:19:35 +0000.