CVE-2026-55253: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in langchain-ai langchain-mongodb
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.
AI Analysis
Technical Summary
The vulnerability arises from improper neutralization of special elements in data query logic (CWE-943) within langchain-mongodb. Functions MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search() accept filter dictionaries that are incorporated into MongoDB queries without recursively rejecting keys starting with '$'. An authenticated attacker controlling these filters via HTTP parameters or agent tool arguments can inject MongoDB Query Language operators such as $regex or $where. In multi-tenant environments relying on these filters for tenant isolation, this can lead to bypassing equality filters and unauthorized data exposure. The vulnerability is addressed in langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0.
Potential Impact
An authenticated user can exploit this vulnerability to inject MongoDB query operators, bypassing intended per-user or per-tenant filtering controls. This can lead to unauthorized access to checkpoint or store data belonging to other tenants in a multi-tenant deployment. There is no indication of impact on data integrity or availability. Filters constructed solely from trusted server-side values are less at risk.
Mitigation Recommendations
Upgrade to langgraph-checkpoint-mongodb version 0.3.0 or later and langgraph-store-mongodb version 0.4.0 or later, where this issue is fixed. Until upgraded, avoid using user-controlled filter dictionaries in MongoDB queries or ensure that keys prefixed with '$' are properly sanitized or rejected. No other mitigation or temporary fix is indicated.
CVE-2026-55253: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in langchain-ai langchain-mongodb
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.
CVSS v3.1
Score 7.7high
Affected software
langchain-ai
langchain-mongodb
langchain-ai
langgraph-checkpoint-mongodb
langchain-ai
langgraph-store-mongodb
pkg:github/langchain-ai/langgraph-checkpoint-mongodbpkg:github/langchain-ai/langgraph-store-mongodbRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from improper neutralization of special elements in data query logic (CWE-943) within langchain-mongodb. Functions MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search() accept filter dictionaries that are incorporated into MongoDB queries without recursively rejecting keys starting with '$'. An authenticated attacker controlling these filters via HTTP parameters or agent tool arguments can inject MongoDB Query Language operators such as $regex or $where. In multi-tenant environments relying on these filters for tenant isolation, this can lead to bypassing equality filters and unauthorized data exposure. The vulnerability is addressed in langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0.
Potential Impact
An authenticated user can exploit this vulnerability to inject MongoDB query operators, bypassing intended per-user or per-tenant filtering controls. This can lead to unauthorized access to checkpoint or store data belonging to other tenants in a multi-tenant deployment. There is no indication of impact on data integrity or availability. Filters constructed solely from trusted server-side values are less at risk.
Mitigation Recommendations
Upgrade to langgraph-checkpoint-mongodb version 0.3.0 or later and langgraph-store-mongodb version 0.4.0 or later, where this issue is fixed. Until upgraded, avoid using user-controlled filter dictionaries in MongoDB queries or ensure that keys prefixed with '$' are properly sanitized or rejected. No other mitigation or temporary fix is indicated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T16:44:00.625Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aa8300255bf5e2cf5600a6f
Added to database: 09/14/2026, 17:33:54 UTC
Last enriched: 09/14/2026, 17:46:32 UTC
Last updated: 09/15/2026, 03:19:34 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.