Vulnerabilities in pkg:pypi/mem0ai

PACKAGE
Advisory Identifier: GHSA-jfv9-68m5-gjjr
Advisory Summary

CVE-2026-31240 is a HIGH (CVSS 7.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 management api endpoints. Remediation is available in the latest vendor maintenance releases.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/mem0ai

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/mem0ai. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jfv9-68m5-gjjr CVE-2026-31240 HIGH mem0 server lacks authentication and authorization controls for its memory management API endpoints
GHSA-cgx8-qgvr-f7vf CVE-2026-31245 MODERATE mem0 server lacks authentication and authorization controls for its memory creation API endpoint
GHSA-gq6f-qwv9-rf4j CVE-2026-31241 MODERATE mem0 server lacks authentication and authorization controls for its memory deletion API endpoint
GHSA-xqxw-r767-67m7 CVE-2026-7597 LOW mem0ai mem0 has an Improper Input Validation Issue

CVE-2026-31240 at a Glance

CVE Identifier CVE-2026-31240
GHSA Identifier GHSA-jfv9-68m5-gjjr
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Mem0ai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.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:H/A:N).

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 High (I:H)
Availability None (A:N)

How to Fix CVE-2026-31240

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-31240, 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 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.

CVE-2026-31240 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-31240?
CVE-2026-31240 is a security vulnerability in Mem0ai involving mem0 server lacks authentication and authorization controls for its memory management API endpoints 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-31240?
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-31240?
CVE-2026-31240 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-31240?
CVE-2026-31240 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-31240?
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-jfv9-68m5-gjjr",
  "modified" : "2026-05-28T19:13:30Z",
  "published" : "2026-05-12T18:30:41Z",
  "aliases" : [ "CVE-2026-31240" ],
  "summary" : "mem0 server lacks authentication and authorization controls for its memory management API endpoints",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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-31240"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mem0ai/mem0"
  }, {
    "type" : "WEB",
    "url" : "https://www.notion.so/CVE-2026-31240-35d1e13931888170964ae035c04a8f18"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-28T19:13:30Z",
    "nvd_published_at" : "2026-05-12T18:16:52Z"
  }
}