Skip to main content

LangGraph MongoDB EUVDEUVD-2026-77674

| CVE-2026-55253 HIGH
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-08-20 https://github.com/langchain-ai/langchain-mongodb GHSA-533j-2v4q-mw5h PYSEC-2026-3859 PYSEC-2026-3860
7.7
CVSS 3.1 · Vendor: https://github.com/langchain-ai/langchain-mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege API credentials
  2. Delivery
    Identify filter-accepting endpoint (list/search)
  3. Exploit
    Craft filter containing MongoDB $-operator
  4. Execution
    Submit API call with injected filter
  5. Persist
    Bypass per-tenant query predicate
  6. Impact
    Read other tenants' checkpoint or store data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Exploitation requires an authenticated low-privilege API caller (PR:L per CVSS) who has the ability to control or influence the filter argument passed to MongoDBSaver.list(), MongoDBSaver.alist(), or MongoDBStore.search(). Three specific conditions must all be true: the application must run a vulnerable version (langgraph-checkpoint-mongodb < 0.3.0 or langgraph-store-mongodb < 0.4.0); the filter parameter must derive at least partially from user-controlled input such as HTTP query parameters, request body fields, or agent tool arguments; and the deployment must be multi-tenant, relying on filter predicates to enforce per-tenant data isolation. What limits exploitation: if the filter is built entirely from server-side trusted values, injecting operators is not possible regardless of version; single-tenant deployments have no other-tenant data to expose even if the injection succeeds. Authentication is required (PR:L) - unauthenticated exploitation is not indicated by the CVSS vector.

Impact

The CVSS 3.1 score of 7.7 High (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N) and CVSS 4.0 score of 7.1 High (SC:H) both accurately characterize the cross-tenant impact: a low-privilege network attacker can trigger high confidentiality impact that escapes the vulnerable component's tenant boundary. These scores are internally consistent and well-supported by the description. No EPSS score was provided in the input data, so exploitation probability cannot be quantified. There is no CISA KEV listing and no public POC identified at time of analysis. Real-world risk is strongly conditional: deployments where filter values are constructed entirely from trusted server-side values face negligible practical exposure even on vulnerable versions, and single-tenant deployments face no cross-tenant risk by definition. However, multi-tenant LangGraph applications passing any user-controlled values into filter arguments on vulnerable versions face a genuine, low-complexity data exfiltration path requiring only a valid API credential. This is a real priority for that specific deployment pattern, not merely a paper-high CVSS score.

Exploit ScenarioDerived

An authenticated user in a multi-tenant LangGraph application crafts an HTTP request whose parameters are used to build a filter argument - for example, injecting {'$gt': ''} as a filter value when invoking a MongoDBSaver.list() API endpoint. The MongoDB query construction incorporates the operator without sanitization, causing the database to ignore or override the tenant-scoping predicate and return checkpoint documents belonging to other tenants. No public POC has been identified, but the attack requires only low-privilege API credentials and familiarity with MongoDB query operator syntax.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 20, 2026

NoSQL operator injection in LangGraph's MongoDB persistence libraries (langgraph-checkpoint-mongodb < 0.3.0 and langgraph-store-mongodb < 0.4.0) allows authenticated API callers to embed MongoDB query operators directly in filter parameters, bypassing per-tenant query predicates and exposing other tenants' checkpoint and store data. The flaw affects MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search() methods whenever filter arguments derive from user-controlled input in multi-tenant deployments. No public exploit or CISA KEV listing exists at time of analysis, but the cross-tenant data exposure is a concrete, high-impact risk for any multi-tenant LangGraph AI agent application backed by MongoDB.

RemediationAI

Upgrade langgraph-checkpoint-mongodb to version 0.3.0 or later and langgraph-store-mongodb to version 0.4.0 or later; these are the vendor-confirmed fixed versions per advisory GHSA-533j-2v4q-mw5h. Release artifacts for subsequent versions (checkpoint v0.4.0, store v0.3.0 and later) are available at the langchain-mongodb GitHub releases page. If an immediate upgrade is not possible, apply the vendor-recommended workaround in application code before invoking the affected methods: strip or reject any filter dictionary keys prefixed with '$' from user-controlled input prior to passing the filter argument. This must be enforced at the application boundary, not inside the library. Note that this workaround requires careful implementation to avoid bypasses; upgrading remains the preferred remediation. Applications that construct filter arguments exclusively from trusted, server-side values are at substantially reduced practical risk but should still upgrade.

Affected VersionsENISA

langgraph-store-mongodb < 0.4.0
langgraph-checkpoint-mongodb < 0.3.0
langchain-mongodb < 0.4.0

Affected Packages

pypi langgraph-checkpoint-mongodb fix: 0.3.0
pypi langgraph-store-mongodb fix: 0.4.0
euvd langchain_mongodb fix: 0.4.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in pypi, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) describes the root cause: MongoDB query operators - keys prefixed with '$' such as $gt, $where, $regex, and $elemMatch - alter query semantics when present in filter dictionaries. The langgraph-checkpoint-mongodb library (pkg:pip/langgraph-checkpoint-mongodb) provides durable state persistence for LangGraph AI agent workflows via MongoDB, while langgraph-store-mongodb (pkg:pip/langgraph-store-mongodb) provides a key-value store interface for agent memory. Both libraries pass user-supplied filter dictionaries directly to MongoDB query construction without stripping or rejecting operator-prefixed keys. In multi-tenant architectures, applications rely on filter predicates to scope queries to a specific tenant; injected operators can override or bypass those predicates, returning documents from other tenants' namespaces. The vulnerability is limited to read operations - no write or modification capability is introduced.

Know when Checkpoint gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/langchain-ai/langchain-mongodb) PRIMARY 7.7 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
vuln.today AI 7.7 HIGH

Authenticated low-privilege API access required (PR:L); scope changes because injection escapes tenant boundary (S:C); only confidentiality impact applies (read-only).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (https://github.com/langchain-ai/langchain-mongodb).

CVSS VectorVendor: https://github.com/langchain-ai/langchain-mongodb

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Executive Summary

A NoSQL injection issue exists in the langgraph-checkpoint-mongodb and langgraph-store-mongodb libraries. MongoDBSaver.list() and MongoDBStore.search() methods accept a filter parameter that is incorporated into MongoDB queries without sufficient validation. Because MongoDB query operator keys (those prefixed with $) are not rejected during filter construction, a caller with control of the filter input can embed MongoDB query operators directly into the query.

---

CVSS Details

CVSS 4.0

FieldValue
CVSS Version4.0
Vector StringCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
Base Score7.1 (High)
MetricValueRationale
Attack Vector (AV)NetworkTriggerable remotely via API
Attack Complexity (AC)LowNo special conditions required
Attack Requirements (AT)NoneNo prerequisite deployment or execution conditions
Privileges Required (PR)LowAuthenticated caller of the checkpoint/store API
User Interaction (UI)NoneNo user action required
Vulnerable System Confidentiality (VC)NoneNo direct impact on the vulnerable component itself
Vulnerable System Integrity (VI)NoneRead-only access
Vulnerable System Availability (VA)NoneNo service disruption
Subsequent System Confidentiality (SC)HighFull access to other tenants' checkpoint data
Subsequent System Integrity (SI)NoneNo write or modification capability
Subsequent System Availability (SA)NoneNo service disruption to downstream systems

CVSS 3.1

FieldValue
CVSS Version3.1
Vector StringCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Base Score7.7 (High)
MetricValueRationale
Attack VectorNetworkTriggerable remotely via API
Attack ComplexityLowNo special conditions required
Privileges RequiredLowAuthenticated caller of the checkpoint/store API
User InteractionNoneNo user action required
ScopeChangedImpact crosses tenant boundaries
ConfidentialityHighFull access to other tenants' checkpoint data
IntegrityNoneRead-only access
AvailabilityNoneNo service disruption

---

Affected Packages

PackageDistributionAffected MethodsAffected Versions
langgraph-checkpoint-mongodbPyPIMongoDBSaver.list(), MongoDBSaver.alist()< 0.3.0
langgraph-store-mongodbPyPIMongoDBStore.search()< 0.4.0

---

Advisory FAQ

How do I know if I am affected?

You are likely affected if all of the following are true:

  1. Your application uses langgraph-checkpoint-mongodb or langgraph-store-mongodb.
  2. Your application calls MongoDBSaver.list(), MongoDBSaver.alist(), or

MongoDBStore.search() with a filter argument.

  1. Any part of that filter argument is derived from user-controlled input - for example, HTTP

query parameters, request body fields, or agent tool arguments.

  1. You operate in a multi-tenant context where the filter is used to enforce per-user or

per-tenant data isolation.

If the filter argument is constructed entirely from trusted, server-side values, the practical risk is lower, but upgrading is still recommended.

How do I fix the issue?

Upgrade to the version of langgraph-checkpoint-mongodb and langgraph-store-mongodb. If you cannot upgrade immediately, apply the following mitigation: in your application code, before passing any user-controlled input to the filter parameter, remove or escape MongoDB Query metacharacters such as “$”.

---

Acknowledgements

Thanks to Kenichi Kawaguchi for responsibly disclosing this issue via the GitHub Security Advisory program on the langchain-mongodb repository.

---

Revisions

DateDescription
2026-06-05Initial advisory published

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 pypi packages depend on langgraph-store-mongodb (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.4.0.

Executive ViewAI

Why It Matters

LangGraph's MongoDB integration (versions prior to 0.3.0 for checkpoint storage and 0.4.0 for data stores) contains a vulnerability that allows authenticated API users to bypass tenant isolation and access other tenants' sensitive AI checkpoint data and conversation histories. No public exploit identified at time of analysis; however, the vulnerability represents a concrete data exposure risk in multi-tenant deployments that requires immediate attention.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement strict input validation and allowlist-based filtering to reject MongoDB operator syntax in all filter parameters. Restrict API access to affected methods through network controls or API gateway rules. Enable MongoDB audit logging to detect exploitation attempts. Isolate tenant data to separate MongoDB instances or databases with distinct credentials until a vendor patch becomes available.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Low
niche MongoDB-specific LangGraph agent persistence integration
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2024-24919 HIGH POC
8.6 May 28

Potentially allowing an attacker to read certain information on Check Point Security Gateways once connected to the inte

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2017-1000083 HIGH POC
7.8 Sep 05

backend/comics/comics-document.c (aka the comic book backend) in GNOME Evince before 3.24.1 allows remote attackers to e

CVE-2026-85102 CRITICAL POC
9.8 Sep 09

Remote code execution in Check Point Quantum Security Gateway arises from improper certificate trust validation during V

CVE-2026-16232 CRITICAL POC
9.3 Jul 22

Authentication bypass in the Check Point SmartConsole login process lets an unauthenticated remote attacker mint a valid

CVE-2026-50751 CRITICAL POC
9.3 Jun 08

Authentication bypass in Check Point Quantum Security Gateway and Spark Firewalls allows unauthenticated remote attacker

CVE-2026-93616 CRITICAL POC
9.8 Sep 22

Unauthenticated attackers who can reach the file-upload interface of Check Point Management Server can combine directory

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2026-85103 CRITICAL POC
9.8 Sep 09

Remote code execution in Check Point Quantum Security Gateway and Quantum Security Management stems from a heap-based bu

CVE-2026-91843 CRITICAL POC
9.8 Sep 16

Unauthenticated remote code execution affects Check Point Quantum Security Management, where a stack-based buffer overfl

CVE-2024-3568 CRITICAL POC
9.6 Apr 10

The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy