usememos/memos · Security
memos CORS Misconfiguration in server.go (GHSL-2024-034)
- GHSA ID
- GHSA-p4fx-qf2h-jpmj
- CVE ID
- CVE-2024-41659
- Severity
- high
- Published
- Updated
- CVSS
- 8.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CVSS v3
- 8.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CVSS v4
- 8.6 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Description
memos is a privacy-first, lightweight note-taking service. A CORS misconfiguration exists in memos 0.20.1 and earlier where an arbitrary origin is reflected with Access-Control-Allow-Credentials set to true. This may allow an attacking website to make a cross-origin request, allowing the attacker to read private information or make privileged changes to the system as the vulnerable user account.
CWEs
- CWE-942 · Permissive Cross-domain Security Policy with Untrusted Domains
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-41659 ↗
- https://github.com/usememos/memos/commit/8101a5e0b162044c16385bee4f12a4a653d050b9 ↗
- https://github.com/usememos/memos/blob/v0.20.1/server/server.go#L163 ↗
- https://securitylab.github.com/advisories/GHSL-2024-034_memos ↗
- https://github.com/advisories/GHSA-p4fx-qf2h-jpmj ↗