CVE-2026-31241: Mem0ai Mem0 Server Lacks Authentication And Vulnerability

MODERATE
Advisory Identifier: GHSA-gq6f-qwv9-rf4j
CVSS 6.5
CWE-306
Published
Advisory Summary

CVE-2026-31241 is a MODERATE (CVSS 6.5) 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 deletion api endpoint. Remediation is available in the latest vendor maintenance releases.

CVE-2026-31241 at a Glance

CVE Identifier CVE-2026-31241
GHSA Identifier GHSA-gq6f-qwv9-rf4j
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Mem0ai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-31241

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.

mem0ai fixed: Latest secure release
pip install mem0ai>=Latest secure release
Verify Direct and Transitive Dependencies

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-31241, 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

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.

CVE-2026-31241 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-31241?
CVE-2026-31241 is a security vulnerability in Mem0ai involving mem0 server lacks authentication and authorization controls for its memory deletion API endpoint under CWE-306: Missing Authentication for Critical Function.
Which Mem0ai versions are affected?
Affected versions include releases prior to current release patches across affected packages: mem0ai.
What version fixes CVE-2026-31241?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is mem0ai affected?
Yes, mem0ai is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-31241?
CVE-2026-31241 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
What CWE is associated with CVE-2026-31241?
CVE-2026-31241 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check PyPI dependencies for CVE-2026-31241?
Run the dependency tree command: 'pip show mem0ai'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gq6f-qwv9-rf4j",
  "modified" : "2026-05-27T22:46:15Z",
  "published" : "2026-05-12T18:30:41Z",
  "aliases" : [ "CVE-2026-31241" ],
  "summary" : "mem0 server lacks authentication and authorization controls for its memory deletion API endpoint",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
  } ],
  "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-31241"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mem0ai/mem0"
  }, {
    "type" : "WEB",
    "url" : "https://www.notion.so/CVE-2026-31241-35d1e139318881459ae5e6f0d7dc6f0f"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-27T22:46:15Z",
    "nvd_published_at" : "2026-05-12T18:16:52Z"
  }
}