Vulnerability · Published Aug 20, 2024 · Assigned by GitHub_M
CVE-2024-41659GHSL-2024-034: memos CORS Misconfiguration in server.go
High 8.1
In plain English
A high-severity security flaw in memos from usememos. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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. This vulnerability is fixed in 0.21.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/usememos/memos | 0.21.0 | GHSA-p4fx-qf2h-jpmj |
| Go | github.com/usememos/memos | 0.21.0 | GO-2024-3088 |
Affected products (as reported)
Weakness: CWE-942 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
References
- https://securitylab.github.com/advisories/GHSL-2024-034_memos/ x_refsource_CONFIRM
- https://github.com/usememos/memos/commit/8101a5e0b162044c16385bee4f12a4a653d050b9 x_refsource_MISC
- https://github.com/usememos/memos/blob/v0.20.1/server/server.go#L163 x_refsource_MISC