GO-2025-3937: XSS
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.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker must be authenticated and able to upload an attachment or set a user avatar. Exploitation also requires an administrator to view the stored malicious content.
What is the likely impact if exploitation succeeds?
The stored script can execute in an administrator's browser, allowing the attacker to elevate privileges. The reported impact includes low confidentiality and integrity impact, with no availability impact.
What upload behavior causes the exposure?
Memos does not verify the content type of uploaded data and serves the uploaded content back as provided. This affects the attachment and user-avatar upload features.