CVE-2026-55253
LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure
Also known as GHSA-533j-2v4q-mw5h, PYSEC-2026-3859, PYSEC-2026-3860
Mitigation
- Upgrade langgraph-checkpoint-mongodb to 0.3.0 or later.
- Upgrade langgraph-store-mongodb to 0.4.0 or later.
Who should check
- Projects that depend on PyPI package langgraph-checkpoint-mongodb (< 0.3.0)
- Projects that depend on PyPI package langgraph-store-mongodb (< 0.4.0)
- Anyone running langchain-ai langchain-mongodb < 0.4.0
- Anyone running langchain-ai langgraph-checkpoint-mongodb < 0.3.0
- Anyone running langchain-ai langgraph-store-mongodb < 0.4.0
Vulnerability facts
- Affected
- langgraph-checkpoint-mongodb < 0.3.0; langgraph-store-mongodb < 0.4.0
- Fixed in
- 0.3.0, 0.4.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- CWE
- CWE-943
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI langgraph-checkpoint-mongodb | < 0.3.0 | 0.3.0 | osv |
| PyPI langgraph-store-mongodb | < 0.4.0 | 0.4.0 | osv |
| langchain-ai langchain-mongodb | < 0.4.0 | — | cvelist |
| langchain-ai langgraph-checkpoint-mongodb | < 0.3.0 | — | cvelist |
| langchain-ai langgraph-store-mongodb | < 0.4.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-55253. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-55253.md Affected: langgraph-checkpoint-mongodb < 0.3.0; langgraph-store-mongodb < 0.4.0 Fixed in: 0.3.0, 0.4.0 Steps: 1. Search this machine and project for langgraph-checkpoint-mongodb (PyPI), langgraph-store-mongodb (PyPI), langchain-ai langchain-mongodb, langchain-ai langgraph-checkpoint-mongodb, langchain-ai langgraph-store-mongodb: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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
Other
- 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
- https://pypi.org/project/langgraph-checkpoint-mongodb
- https://pypi.org/project/langgraph-store-mongodb
FAQ
Is CVE-2026-55253 being exploited?
There is no confirmed exploitation: CVE-2026-55253 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-55253?
High: CVSS 7.7 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-55253?
langgraph-checkpoint-mongodb < 0.3.0; langgraph-store-mongodb < 0.4.0.
Is there a fix for CVE-2026-55253?
Yes. Fixed in 0.3.0, 0.4.0. Upgrade langgraph-checkpoint-mongodb to 0.3.0 or later. Upgrade langgraph-store-mongodb to 0.4.0 or later.
How do I check if I'm affected by CVE-2026-55253?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.