GHSL-2024-034: memos CORS Misconfiguration in server.go
usememos memos
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/usememos/memos Go |
|
|
Original 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.
From the CVE record · GitHub_M
References
- securitylab.github.com/advisories/GHSL-2024-034_memosExploit
- github.com/usememos/memos/commit/8101a5e0b162044c16385bee4f12a4a653d050b9Patch
- github.com/usememos/memos/blob/v0.20.1/server/server.go#L163
- github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41659.json
- nvd.nist.gov/vuln/detail/CVE-2024-41659
- github.com/usememos/memos
- securitylab.github.com/advisories/GHSL-2024-034_memos
- github.com/advisories/GHSA-p4fx-qf2h-jpmj