## Mem0: Cross-tenant conversation leak via unescaped delimiter collision in session-scope key (_build_session_scope)

- 種別: advisory
- 重大度: medium
- 関連技術: python, nodejs
- CVE: CVE-2026-116575
- 公開日時: 2026-10-28T21:17:08.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-5324-3w58-qpp2)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-5324-3w58-qpp2

影響: 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…