CVE-2026-31245: Mem0ai Mem0 Server Lacks Authentication And Vulnerability
MODERATECVE-2026-31245 is a MODERATE (CVSS 5.3) mem0 server lacks authentication and vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Mem0ai libraries in the PyPI ecosystem. The issue involves mem0 server lacks authentication and authorization controls for its memory creation api endpoint. Remediation is available in the latest vendor maintenance releases.
CVE-2026-31245 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2026-31245
To remediate this vulnerability, upgrade all affected Mem0ai dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mem0ai>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mem0ai
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-31245, inspect your installed packages using pip:
pip show mem0ai
Analyze the terminal output to locate any version of Mem0ai in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show mem0ai command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Mem0ai, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-31245 Affected Mem0ai Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mem0ai
|
PyPI |
≤ 1.0.0
|
|
References
Frequently Asked Questions
What is CVE-2026-31245?
Which Mem0ai versions are affected?
What version fixes CVE-2026-31245?
Is mem0ai affected?
What is the CVSS score of CVE-2026-31245?
What CWE is associated with CVE-2026-31245?
How can I check PyPI dependencies for CVE-2026-31245?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cgx8-qgvr-f7vf",
"modified" : "2026-05-27T22:46:51Z",
"published" : "2026-05-12T18:30:41Z",
"aliases" : [ "CVE-2026-31245" ],
"summary" : "mem0 server lacks authentication and authorization controls for its memory creation API endpoint",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mem0ai"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-31245"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mem0ai/mem0"
}, {
"type" : "WEB",
"url" : "https://www.notion.so/CVE-2026-31245-35d1e1393188810aab57ff9b49146b05"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-306" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-27T22:46:51Z",
"nvd_published_at" : "2026-05-12T18:16:53Z"
}
}