CVE-2026-31245 mem0 server lacks authentication and authorization controls for its memory creation API endpoint

Medium 5.3 Published Updated

Unauthenticated attackers can inject arbitrary memory records into the mem0 server database via the POST /memories endpoint, leading to data pollution.

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-31245?

CVE-2026-31245 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 creation API endpoint (POST /memories). The endpoint allows unauthenticated users to submit arbitrary memory records without verifying their identity or permissions. A remote attacker can exploit this by sending unauthenticated POST requests to create malicious or spoofed memory entries in the database, leading to unauthorized data injection and potential data pollution.

Weakness: CWE-862, CWE-306

Which versions are affected by CVE-2026-31245?

3 open source packages ship an affected version, including mem0ai. It affects 1 product.

PackageAffectedFixed in
mem0ai PyPIAll versions to 1.0.0None
mem0ai PyPIAll versions to 1.0.0None
mem0ai PyPIAll versions to 1.0.0None

Products include Mem0 Mem0.

How do I fix CVE-2026-31245?

No fix has been published for CVE-2026-31245 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-31245 being exploited?

There is no known exploitation of CVE-2026-31245 in the wild and no public exploit code.

Sources

Also known as GHSA-cgx8-qgvr-f7vf, PYSEC-2026-2633.

Is CVE-2026-31245 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free