LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure
Summary
| CVE | CVE-2026-55253 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-09-14 18:17:55 UTC |
| Updated | 2026-09-14 20:16:47 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 7.7 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS: 0.003900000 probability, percentile 0.325600000 (date 2026-09-15)
Problem Types: CWE-943 | CWE-943 CWE-943: Improper Neutralization of Special Elements in Data Query Logic
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.7 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 7.7 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
ChangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Langchain-ai | Langchain-mongodb | affected < 0.4.0 | Not specified |
| CNA | Langchain-ai | Langgraph-checkpoint-mongodb | affected < 0.3.0 | Not specified |
| CNA | Langchain-ai | Langgraph-store-mongodb | affected < 0.4.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-st... | [email protected] | github.com | |
| github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-ch... | [email protected] | github.com | |
| github.com/langchain-ai/langchain-mongodb/pull/384 | [email protected] | github.com | |
| github.com/langchain-ai/langchain-mongodb/commit/5465e4d3ea0ef5c88a666a6... | [email protected] | github.com | |
| github.com/langchain-ai/langchain-mongodb/commit/240e7ecee432ea006d9fef6... | [email protected] | github.com | |
| github.com/langchain-ai/langchain-mongodb/security/advisories/GHSA-533j-... | [email protected] | github.com | |
| github.com/langchain-ai/langchain-mongodb/commit/14a6cc39e67d23fd409cd13... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.