LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| langchain-ai | langchain-mongodb | before 0.4.0 | 0.4.0 | Patch available | CNA |
| langchain-ai | langgraph-checkpoint-mongodb | before 0.3.0 | 0.3.0 | Patch available | CNA |
| langchain-ai | langgraph-store-mongodb | before 0.4.0 | 0.4.0 | Patch available | CNA |
| — | langgraph-checkpoint-mongodb (PyPI) | before 0.3.0 | 0.3.0 | Patch available | GHSA-533j-2v4q-mw5h |
| — | langgraph-store-mongodb (PyPI) | before 0.4.0 | 0.4.0 | Patch available | GHSA-533j-2v4q-mw5h |
- langchain-mongodb Vendorlangchain-ai Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
- langgraph-checkpoint-mongodb Vendorlangchain-ai Affected before 0.3.0 Fixed in 0.3.0 Patch available CNA
- langgraph-store-mongodb Vendorlangchain-ai Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
- langgraph-checkpoint-mongodb (PyPI) Vendor— Affected before 0.3.0 Fixed in 0.3.0 Patch available GHSA-533j-2v4q-mw5h
- langgraph-store-mongodb (PyPI) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-533j-2v4q-mw5h
Remediation
- Fix · CNA langchain-mongodb (langchain-ai) Fixed in 0.4.0
- Fix · CNA langgraph-checkpoint-mongodb (langchain-ai) Fixed in 0.3.0
- Fix · CNA langgraph-store-mongodb (langchain-ai) Fixed in 0.4.0
- Fix · GHSA-533j-2v4q-mw5h langgraph-checkpoint-mongodb (PyPI) Fixed in 0.3.0 Advisory →
- Fix · GHSA-533j-2v4q-mw5h langgraph-store-mongodb (PyPI) Fixed in 0.4.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-55253
- 2026-10-03 Alias added: GHSA-533j-2v4q-mw5h
References
Other 10
- https://github.com/langchain-ai/langchain-mongodb/security/advisories/GHSA-533j-2v4q-mw5h
- https://github.com/langchain-ai/langchain-mongodb/pull/384
- https://github.com/langchain-ai/langchain-mongodb/commit/14a6cc39e67d23fd409cd13a9caae2c329df0a09
- https://github.com/langchain-ai/langchain-mongodb/commit/240e7ecee432ea006d9fef6ea506bfd2e009a3f4
- https://github.com/langchain-ai/langchain-mongodb/commit/5465e4d3ea0ef5c88a666a6442bd853ff4bd70e5
- https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-checkpoint-mongodb/v0.4.0
- https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs/langgraph-store-mongodb/v0.3.0
- https://github.com/langchain-ai/langchain-mongodb
- https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs%2Flanggraph-checkpoint-mongodb%2Fv0.4.0
- https://github.com/langchain-ai/langchain-mongodb/releases/tag/libs%2Flanggraph-store-mongodb%2Fv0.3.0
More langchain-ai vulnerabilities
- TI-2024-31340 langchain_experimental (aka LangChain Experimental) 0.1.17 through 0.3.0 for LangChain… CVSS 3.1CRITICAL 9.8
- TI-2023-20724 An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to… CVSS 3.1CRITICAL 9.8
- TI-2023-20706 An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary… CVSS 3.1CRITICAL 9.8
- TI-2023-20166 An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to… CVSS 3.1CRITICAL 9.8
- TI-2023-20136 An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter. CVSS 3.1CRITICAL 9.8
- TI-2023-18185 An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-55253 · CVE Program
- CVE-2026-55253 · NVD
- FIRST EPSS
- GHSA-533j-2v4q-mw5h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences