Case · DiggingBeagle record

Mem0 conversation keys could collide across agent, run and user scopes

Mem0 combined agent, run and user identifiers with unescaped delimiter characters, allowing differently structured identities to produce the same underlying memory key. Colliding keys could mix recent messages into an extraction model and permit cross-principal memory reads, writes or eviction.

Scope

The caller must be able to control identifiers containing delimiter syntax; an ordinary account cannot automatically read every other user’s memory. The flaw is a structural key-serialization vulnerability in agent memory, not an observed compromise of Mem0 hosted customers.

Assessment profile

Assessment method
Setting
research demonstration
Exploitation
demonstrated
Evidence
Grade B
Remediation
patch available
AI role
AGAINST AI
Basis and provenance

The cited primary technical report or advisory supports the stated mechanism within its reported scope. The assessment does not infer a production breach, a victim count or a comparable impact score from a laboratory result. A maintainer or advisory names a patched release; that does not prove every deployed instance has updated. Boundary: This failure occurs before the language model makes any decision: multiple identity tuples serialize to the same session key, and the next extraction request may include another tenant’s raw message history.

Assessed Oct 29, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Step

  2. 02

    Step

  3. 03

    Step

Claims & evidence

CLM-ENRICH-20261029-12Mem0 used unescaped ampersands and equals signs when joining agent, run and user identity fields into a conversation-history key, permitting two otherwise different tuples to address the same stored messages.supported

Basis: reported finding

Link to claim
CLM-CP23-MEM0-SESSION-DELIMITER-1Mem0 combined agent, run and user identifiers with unescaped delimiter characters, allowing differently structured identities to produce the same underlying memory key. The caller must be able to control identifiers containing delimiter syntax; an ordinary account cannot automatically read every other user’s memory. Colliding keys could mix recent messages into an extraction model and permit cross-principal memory reads, writes or eviction.supported

Basis: reported finding

Link to claim

Implications

Colliding keys could mix recent messages into an extraction model and permit cross-principal memory reads, writes or eviction.

Controls and mitigations

  • Upgrade mem0ai to 2.0.18 or the npm SDK to 3.1.6 and use unambiguous typed, length-prefixed identity tuples.

Unknowns and contradictions

  • The flaw is a structural key-serialization vulnerability in agent memory, not an observed compromise of Mem0 hosted customers.

Sources and citation

Material revision history

  1. Oct 29, 2026 · Canonical change recorded · new in release · revision 202