CVE-2026-31240 mem0 server lacks authentication and authorization controls for its memory management API endpoints
Remote attackers can modify or delete memory records in the mem0 server due to missing authentication and authorization controls on API endpoints.
- 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-31240?
CVE-2026-31240 is a high-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 management API endpoints. Critical functions such as updating memory records (PUT /memories/{memory_id}) are exposed without any verification of the requester's identity or permissions. A remote attacker can exploit this by sending unauthenticated requests to modify, overwrite, or delete arbitrary memory records, leading to unauthorized data manipulation and potential data loss.
Weakness: CWE-306
Which versions are affected by CVE-2026-31240?
3 open source packages ship an affected version, including mem0ai.
| 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 |
How do I fix CVE-2026-31240?
No fix has been published for CVE-2026-31240 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-31240 being exploited?
There is no known exploitation of CVE-2026-31240 in the wild and no public exploit code.
Sources
Also known as GHSA-jfv9-68m5-gjjr, PYSEC-2026-2635.