{"id":"CVE-2026-116575","state":"PUBLISHED","title":"Mem0: Cross-tenant conversation leak via unescaped delimiter collision in session-scope key (_build_session_scope)","description":"Mem0 provides persistent memory infrastructure for AI agents and applications. Prior to Python SDK 2.0.18 and TypeScript SDK 3.1.6, _build_session_scope() in mem0/memory/main.py and Memory.buildSessionScope() in the TypeScript SDK join caller-controlled user_id, agent_id, and run_id values using unescaped & and = delimiters. A caller can embed another scope component in a controlled identifier so that distinct tenant tuples produce the same session_scope key. Memory.add(), AsyncMemory.add(), and the REST POST /memories flow use that key to read and save recent raw messages, allowing cross-tenant conversation disclosure and eviction or interleaving of another tenant's history. This issue is fixed in Python SDK 2.0.18 and TypeScript SDK 3.1.6.","publishedAt":"2026-10-26T20:15:01.875Z","updatedAt":"2026-10-27T14:18:25.039Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["mem0ai mem0"],"affected":[{"vendor":"mem0ai","product":"mem0","versions":[{"version":"< 2.0.18","status":"affected"}]}],"references":["https://github.com/mem0ai/mem0/security/advisories/GHSA-5324-3w58-qpp2","https://github.com/mem0ai/mem0/pull/6892","https://github.com/mem0ai/mem0/commit/71f2ebefa3494da21550fb525216818776cde67f","https://github.com/mem0ai/mem0/releases/tag/ts-v3.1.6","https://github.com/mem0ai/mem0/releases/tag/v2.0.18"],"weaknesses":["CWE-200","CWE-863"],"ingestedAt":"2026-10-29T20:10:43.281Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/116xxx/CVE-2026-116575.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-116575","state":"PUBLISHED","datePublished":"2026-10-26T20:15:01.875Z","dateUpdated":"2026-10-27T14:18:25.039Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-26T15:03:39.035Z"},"containers":{"cna":{"title":"Mem0: Cross-tenant conversation leak via unescaped delimiter collision in session-scope key (_build_session_scope)","descriptions":[{"lang":"en","value":"Mem0 provides persistent memory infrastructure for AI agents and applications. Prior to Python SDK 2.0.18 and TypeScript SDK 3.1.6, _build_session_scope() in mem0/memory/main.py and Memory.buildSessionScope() in the TypeScript SDK join caller-controlled user_id, agent_id, and run_id values using unescaped & and = delimiters. A caller can embed another scope component in a controlled identifier so that distinct tenant tuples produce the same session_scope key. Memory.add(), AsyncMemory.add(), and the REST POST /memories flow use that key to read and save recent raw messages, allowing cross-tenant conversation disclosure and eviction or interleaving of another tenant's history. This issue is fixed in Python SDK 2.0.18 and TypeScript SDK 3.1.6."}],"affected":[{"vendor":"mem0ai","product":"mem0","versions":[{"version":"< 2.0.18","status":"affected"}]}],"references":[{"url":"https://github.com/mem0ai/mem0/security/advisories/GHSA-5324-3w58-qpp2","name":"https://github.com/mem0ai/mem0/security/advisories/GHSA-5324-3w58-qpp2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mem0ai/mem0/pull/6892","name":"https://github.com/mem0ai/mem0/pull/6892","tags":["x_refsource_MISC"]},{"url":"https://github.com/mem0ai/mem0/commit/71f2ebefa3494da21550fb525216818776cde67f","name":"https://github.com/mem0ai/mem0/commit/71f2ebefa3494da21550fb525216818776cde67f","tags":["x_refsource_MISC"]},{"url":"https://github.com/mem0ai/mem0/releases/tag/ts-v3.1.6","name":"https://github.com/mem0ai/mem0/releases/tag/ts-v3.1.6","tags":["x_refsource_MISC"]},{"url":"https://github.com/mem0ai/mem0/releases/tag/v2.0.18","name":"https://github.com/mem0ai/mem0/releases/tag/v2.0.18","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","lang":"en","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"CWE-863: Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-26T20:15:01.875Z"},"source":{"advisory":"GHSA-5324-3w58-qpp2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-27T13:45:14.377647Z","id":"CVE-2026-116575","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-27T14:18:25.039Z"}}]}}}