CVE-2026-31241 mem0 server lacks authentication and authorization controls for its memory deletion API endpoint
Unauthenticated attackers can delete memory records for any user via the DELETE /memories endpoint, causing data loss and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-31241?
CVE-2026-31241 is a medium-severity missing authorization vulnerability in n/a, published on 12 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The mem0 1.0.0 server lacks authentication and authorization controls for its memory deletion API endpoint (DELETE /memories). The endpoint allows unauthenticated users to delete memory records by specifying arbitrary user identifiers (e.g., user_id, run_id, agent_id) in the request query parameters. A remote attacker can exploit this by sending unauthenticated DELETE requests to erase memory data for any user, leading to unauthorized data loss and denial of service.
Which versions are affected by CVE-2026-31241?
3 open source packages ship an affected version, including mem0ai. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mem0ai PyPI | All versions to 1.0.0 | None |
mem0ai PyPI | All versions to 1.0.0 | None |
mem0ai PyPI | All versions to 1.0.0 | None |
Products include Mem0 Mem0.
How do I fix CVE-2026-31241?
No fix has been published for CVE-2026-31241 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-31241 being exploited?
There is no known exploitation of CVE-2026-31241 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-gq6f-qwv9-rf4j, PYSEC-2026-2634.