{"id":"ghsa-ghsa-5324-3w58-qpp2","seq":2056918,"kind":"advisory","title":"Mem0: Cross-tenant conversation leak via unescaped delimiter collision in session-scope key (_build_session_scope)","url":"https://github.com/advisories/GHSA-5324-3w58-qpp2","permalink":"https://vulnpulse.app/items/ghsa-ghsa-5324-3w58-qpp2","summary":"影響: pip:mem0ai < 2.0.18 → 2.0.18, npm:mem0ai < 3.1.6 → 3.1.6\n_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…","severity":"medium","techs":["python","nodejs"],"cves":["CVE-2026-116575"],"tags":["GHSA-5324-3w58-qpp2","mem0ai","mem0ai"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-10-28T21:17:08.000Z","fetched_at":"2026-10-29T00:48:52.653Z"}