CVE-2025-56761

medium

Description

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://www.sonarsource.com/blog/securing-go-applications-with-sonarqube-real-world-examples/

https://github.com/usememos/memos/blob/v0.24.4/server/router/api/v1/resource_service.go#L48

https://github.com/usememos/memos/blob/v0.24.0/server/router/api/v1/user_service.go#L147

Details

Source: Mitre, NVD

Published: 2025-09-03

Updated: 2025-09-09

Risk Information

CVSS v2

Base Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

Severity: Medium

CVSS v3

Base Score: 5.4

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

Severity: Medium

EPSS

EPSS: 0.00027