Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Medium · 6.3 Node.js & npm CVE-2026-116575 GHSA-5324-3w58-qpp2

Mem0 Cross-Tenant Conversation Leak Fixed in SDK Update (CVE-2026-116575)

A flaw in Mem0's session-scope key construction could let a caller craft identifiers that collide with another tenant's session, exposing or interleaving that tenant's stored conversation history. Fixed versions are available for both the Python and TypeScript SDKs.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 3 sources · updated 1 week ago

AI summary

Mem0, a memory infrastructure library used by AI agents and applications to persist conversation history, contained a flaw in how it constructs internal session-scope keys. The issue, tracked as CVE-2026-116575 (GHSA-5324-3w58-qpp2), could allow one tenant to access or disturb another tenant's stored conversation data under certain conditions. Fixes are available in updated SDK releases.

What happened

Mem0's internal function for building a session-scope key, _build_session_scope() in the Python SDK and Memory.buildSessionScope() in the TypeScript SDK, joins caller-supplied user_id, agent_id, and run_id values using the characters '&' and '=' as delimiters, without escaping them. Because these delimiters are not escaped, a caller can embed delimiter characters inside a controlled identifier value so that the resulting combined scope key collides with the key for a different, legitimate tenant tuple. This key collision means two distinct tenants can end up mapped to the same session_scope.

Technical cause

The root cause is unescaped delimiter collision in session-scope key construction (CWE-200, Exposure of Sensitive Information to an Unauthorized Actor). Memory.add(), AsyncMemory.add(), and the REST POST /memories endpoint all rely on the session_scope key to read and save recent raw messages for a session. When a crafted identifier causes a collision, these operations can read another tenant's stored messages or write into another tenant's session, evicting or interleaving that tenant's conversation history.

Why it matters

Applications using Mem0 to isolate conversation memory between different users, agents, or workflows rely on session-scope separation to keep conversation data confidential and intact. A collision in this scoping mechanism undermines that isolation, potentially exposing one tenant's conversation content to another, or corrupting stored history through eviction or interleaving of messages.

Who is affected

Any deployment of the mem0ai package that allows a caller to influence the user_id, agent_id, or run_id values used to build a session scope is potentially affected. This applies to both the Python package distribution and the npm package, prior to the fixed versions.

Affected versions

For the mem0ai package (Python distribution), versions prior to 2.0.18 are affected. For the mem0ai package on npm (TypeScript SDK), versions prior to 3.1.6 are affected.

Fixes and mitigation

The vendor has released fixed versions: 2.0.18 for the Python SDK and 3.1.6 for the TypeScript/npm SDK. Both fixes address the unescaped delimiter handling in the session-scope key construction. No mitigation details beyond upgrading are provided in the available information.

Recommended action

Upgrade mem0ai to version 2.0.18 or later for Python deployments, and to version 3.1.6 or later for TypeScript/npm deployments. After upgrading, review any multi-tenant deployments for signs of cross-tenant data exposure that may have occurred prior to patching.

PatchBriefing score

6.3 / 10 · Medium

Official CVSS: 6.3

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

EPSS 0.0014 (2 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

mem0ai < 2.0.18
vulnerable
≥ 2.0.18
patched
mem0ai < 3.1.6
vulnerable
mem0ai ≥ 0 < 3.1.6
vulnerable
≥ 3.1.6
patched

Reported fixes

The vendor has released fixed versions: 2.0.18 for the Python SDK and 3.1.6 for the TypeScript/npm SDK. Both fixes address the unescaped delimiter handling in the session-scope key construction. No mitigation details beyond upgrading are provided in the available information.

How this was built

3 source records were collected, matched and used to prepare the report above.

  • NVD (NIST) database
  • GitHub Advisory Database database
  • OSV.dev database
Unified report
Mem0 Cross-Tenant Conversation Leak Fixed in SDK Update (CVE-2026-116575)
1 article · 3 sources cited
Revision history
  1. Published
  2. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email