Incorrect Authorization Affecting mem0ai package, versions [,2.0.18)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.11% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MEM0AI-22150058
  • published3 Nov 2026
  • disclosed28 Oct 2026
  • creditAbhinav Singh

Introduced: 28 Oct 2026

NewCVE-2026-116575  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade mem0ai to version 2.0.18 or higher.

Overview

mem0ai is a Long-term memory for AI Agents

Affected versions of this package are vulnerable to Incorrect Authorization via the buildSessionScope function (TypeScript) and _build_session_scope function (Python), which construct a session scope key by concatenating entity ID values using = and & as structural delimiters without escaping those characters in the values themselves. An attacker who controls the user_id, agent_id, or run_id filter values can inject delimiter characters to manipulate the resulting scope key, causing one session's scope to collide with or be confused for another's, leading to unauthorized read or write access to memory belonging to a different session identity.

CVSS Base Scores

version 4.0
version 3.1