Mem0: Cross-tenant conversation leak via unescaped delimiter collision in session-scope key (_build_session_scope)
影響: pip:mem0ai < 2.0.18 → 2.0.18, npm:mem0ai < 3.1.6 → 3.1.6
_build_session_scope() in mem0/memory/main.py builds the conversation-history scope key used to fetch/store the last N raw messages by naively joining caller-supplied user_id/agent_id/run_id values with unescaped & and = delimiters: def _build_session_scope(filters): parts = [] for key in sorted(["user_id", "agent_id", "run_id"]): val = filters.get(key) if val: parts.append(f"{key}={val}") return "&".join(parts) _validate_and_trim_entity_id() (the only validation applied to these values) reject…
Read on GitHub Advisory Database
| CVE | CVE-2026-116575 |
|---|---|
| Source | GitHub Advisory Database |
| Fetched | 10/29/2026, 09:48 AM |
| Data | Markdown JSON |
On 10/29/2026, 06:17 AM, GitHub Advisory Database published "Mem0: Cross-tenant conversation leak via unescaped delimiter collision in session-scope key (_build_session_scope)" (type: Advisory). Severity is "Medium" (medium). Related technologies: Python, JavaScript / Node.js. CVE: CVE-2026-116575.