Skip to main content

CVE-2026-55253: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in langchain-ai langchain-mongodb

0
High
VulnerabilityCVE-2026-55253cvecve-2026-55253cwe-943
Published: 09/14/2026 (09/14/2026, 17:09:04 UTC)
Source: CVE Database V5
Vendor/Project: langchain-ai
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Affected software

langchain-ai

langchain-mongodb

Affected versions
<0.4.0

langchain-ai

langgraph-checkpoint-mongodb

Affected versions
<0.3.0

langchain-ai

langgraph-store-mongodb

Affected versions
<0.4.0
GitHub Actionsmore threats →ai
langchain-ai/langgraph-checkpoint-mongodb
pkg:github/langchain-ai/langgraph-checkpoint-mongodb
Affected versions
<0.3.0
GitHub Actionsmore threats →ai
langchain-ai/langgraph-store-mongodb
pkg:github/langchain-ai/langgraph-store-mongodb
Affected versions
<0.4.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/14/2026, 17:46:32 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses