A NoSQL injection flaw in langgraph-checkpoint-mongodb and langgraph-store-mongodb lets a caller who controls the filter argument to MongoDBSaver.list() or MongoDBStore.search() smuggle in raw MongoDB query operators (keys prefixed with $), because the library never rejects them before building the query. For any multi-tenant LangGraph deployment that uses this filter to enforce per-user or per-tenant scoping — common in agent SaaS products storing conversation checkpoints and long-term agent memory in MongoDB — this collapses tenant isolation and lets one user read another tenant's full checkpoint/store data (CVSS 3.1 7.7, Scope Changed, C:H). There is no known public exploit or scanner template, no EPSS score, and it is not in CISA KEV, so this looks opportunistic rather than under active attack today, but the package sits behind 3,763 downstream dependents, meaning many LangGraph-based agent applications carry this dependency without necessarily having built their own filter-input validation. Patch by upgrading to langgraph-checkpoint-mongodb >=0.3.0 and langgraph-store-mongodb >=0.4.0; if you can't upgrade immediately, strip or reject any $-prefixed keys from user-controlled input before it reaches the filter parameter, and monitor logs for filter values containing MongoDB operators as a detection signal.
What is the risk?
Exploitability is low-complexity (AC:L, no special conditions, no user interaction) and requires only low privileges and network access, but the flaw is gated on the deploying application actually passing user-controlled data into the filter parameter — not every LangGraph+MongoDB integration is exposed. Where it is exposed (e.g., a thread_id or metadata filter fed from HTTP query params, request bodies, or agent tool arguments), the blast radius is severe: full read access to other tenants' checkpoint/store history with no write or availability impact (Scope Changed, C:H/I:N/A:N). No active exploitation, EPSS score, or scanner coverage exists yet, so this should be treated as a high-priority patch item rather than an active-incident response, but the large dependent base (3,763) and the fact this affects data-isolation logic in multi-tenant agent products raise the practical urgency.
How does the attack unfold?
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade langgraph-checkpoint-mongodb to >=0.3.0 and langgraph-store-mongodb to >=0.4.0 — both releases reject/sanitize $-prefixed operator keys in filter input. 2) If immediate upgrade isn't possible, add an allowlist or sanitizer in your own code that strips any key starting with $ from filter dicts before passing them to .list(), .alist(), or .search(). 3) Never build the tenant-scoping clause directly from unsanitized user or agent input — construct the tenant/user ID clause server-side and merge it last (or with $and) so it cannot be overridden by an injected operator. 4) For detection, log and alert on filter values containing MongoDB operator keys ($ne, $regex, $where, $or, $exists) originating from request bodies, query params, or agent tool call arguments.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-55253?
A NoSQL injection flaw in langgraph-checkpoint-mongodb and langgraph-store-mongodb lets a caller who controls the filter argument to MongoDBSaver.list() or MongoDBStore.search() smuggle in raw MongoDB query operators (keys prefixed with $), because the library never rejects them before building the query. For any multi-tenant LangGraph deployment that uses this filter to enforce per-user or per-tenant scoping — common in agent SaaS products storing conversation checkpoints and long-term agent memory in MongoDB — this collapses tenant isolation and lets one user read another tenant's full checkpoint/store data (CVSS 3.1 7.7, Scope Changed, C:H). There is no known public exploit or scanner template, no EPSS score, and it is not in CISA KEV, so this looks opportunistic rather than under active attack today, but the package sits behind 3,763 downstream dependents, meaning many LangGraph-based agent applications carry this dependency without necessarily having built their own filter-input validation. Patch by upgrading to langgraph-checkpoint-mongodb >=0.3.0 and langgraph-store-mongodb >=0.4.0; if you can't upgrade immediately, strip or reject any $-prefixed keys from user-controlled input before it reaches the filter parameter, and monitor logs for filter values containing MongoDB operators as a detection signal.
Is CVE-2026-55253 actively exploited?
No confirmed active exploitation of CVE-2026-55253 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-55253?
1) Upgrade langgraph-checkpoint-mongodb to >=0.3.0 and langgraph-store-mongodb to >=0.4.0 — both releases reject/sanitize $-prefixed operator keys in filter input. 2) If immediate upgrade isn't possible, add an allowlist or sanitizer in your own code that strips any key starting with $ from filter dicts before passing them to .list(), .alist(), or .search(). 3) Never build the tenant-scoping clause directly from unsanitized user or agent input — construct the tenant/user ID clause server-side and merge it last (or with $and) so it cannot be overridden by an injected operator. 4) For detection, log and alert on filter values containing MongoDB operator keys ($ne, $regex, $where, $or, $exists) originating from request bodies, query params, or agent tool call arguments.
What systems are affected by CVE-2026-55253?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, agent memory and checkpointing, multi-tenant SaaS AI platforms.
What is the CVSS score for CVE-2026-55253?
CVE-2026-55253 has a CVSS v3.1 base score of 7.7 (HIGH). The EPSS exploitation probability is 0.53%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0036Data from Information RepositoriesAML.T0053AI Agent Tool InvocationAML.T0057LLM Data LeakageCompliance Controls Affected
What are the technical details?
Original Advisory
LangChain MongoDB provides integrations between MongoDB, Atlas, LangChain, and LangGraph. Prior to langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0, MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search() incorporate filter dictionaries into MongoDB queries without recursively rejecting keys prefixed with $. An authenticated caller who controls a filter argument through HTTP query parameters, request body fields, or agent tool arguments can inject MongoDB Query Language operators such as $regex or $where. In a multi-tenant deployment that uses the filter to enforce per-user or per-tenant isolation, injected operators can bypass intended equality filtering and expose other tenants' checkpoint or store data. Filters constructed entirely from trusted server-side values have lower practical risk. This issue is fixed in langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0.
Exploitation Scenario
A SaaS company runs a multi-tenant AI agent product on LangGraph, using MongoDBStore to persist each customer's long-term agent memory, intending to scope results by a tenant_id field in the filter. The product exposes a 'search my agent's memory' API where the request body's metadata filter is merged directly into the MongoDBStore.search() filter argument. An authenticated attacker on a low-privilege tenant sends a filter such as {"metadata.tenant_id": {"$ne": "attacker-tenant"}} instead of a normal equality match; because the library does not strip $-prefixed keys, this negation operator matches every other tenant's memory records instead of being scoped to their own, returning cross-tenant conversation history, tool outputs, and any sensitive data embedded in other customers' agent sessions.
Weaknesses (CWE)
CWE-943Improper Neutralization of Special Elements in Data Query LogicPrimaryCWE-943Improper Neutralization of Special Elements in Data Query LogicPrimaryCWE-943Improper Neutralization of Special Elements in Data Query LogicCWE-943 — Improper Neutralization of Special Elements in Data Query Logic: The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NReferences
- github.com/langchain-ai/langchain-mongodb/commit/14a6cc39e67d23fd409cd13a9caae2c329df0a09x_refsource_MISC
- github.com/langchain-ai/langchain-mongodb/commit/240e7ecee432ea006d9fef6ea506bfd2e009a3f4x_refsource_MISC
- github.com/langchain-ai/langchain-mongodb/commit/5465e4d3ea0ef5c88a666a6442bd853ff4bd70e5x_refsource_MISC
- github.com/langchain-ai/langchain-mongodb/pull/384x_refsource_MISC
- github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-checkpoint-mongodb/v0.4.0x_refsource_MISC
- github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-store-mongodb/v0.3.0x_refsource_MISC
- github.com/advisories/GHSA-533j-2v4q-mw5h
- github.com/langchain-ai/langchain-mongodb/releases/tag/libs%2Flanggraph-checkpoint-mongodb%2Fv0.4.0
- github.com/langchain-ai/langchain-mongodb/releases/tag/libs%2Flanggraph-store-mongodb%2Fv0.3.0
- github.com/langchain-ai/langchain-mongodb/security/advisories/GHSA-533j-2v4q-mw5h
Timeline
Related Vulnerabilities
CVE-2025-87097.3langgraph-checkpoint-sqlite: SQL Injection exposes database
Same package: langgraphCVE-2025-676447.3langgraph-checkpoint-sqlite: SQL Injection exposes database
Same package: langgraphCVE-2025-641047.3langgraph-checkpoint-sqlite: SQL Injection exposes database
Same package: langgraphCVE-2026-282776.8langgraph: Deserialization enables RCE
Same package: langgraphCVE-2026-487756.8LangGraph SQLite: deserialization RCE at checkpoint load
Same package: langgraph