CVE-2026-48121: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in langchain-ai langgraphjs
CVE-2026-48121 is a NoSQL injection vulnerability in langchain-ai's langgraphjs library versions 1.3.0 and below. It arises because checkpoint identifiers used in MongoDB queries are not type-enforced, allowing attackers to inject MongoDB operators to bypass tenant isolation and access unauthorized checkpoint data. The issue is fixed in version 1.3.1.
AI Analysis
Technical Summary
The vulnerability exists in the @langchain/langgraph-checkpoint-mongodb package's CheckpointSaver implementation, which uses MongoDB for storage. In versions 1.3.0 and earlier, checkpoint identifiers (thread_id, checkpoint_ns, checkpoint_id) from config.configurable are passed directly into MongoDB find() queries without enforcing that they are strings. An attacker supplying an object payload containing MongoDB operators like $gt or $ne can manipulate the query logic, bypassing thread scoping and leaking checkpoint data across tenants. This affects applications that accept untrusted input for these identifiers without coercion or schema validation. Applications that enforce string-only identifiers with schema validation are not vulnerable. The vulnerability is fixed in version 1.3.1.
Potential Impact
Successful exploitation allows an attacker with limited privileges to bypass tenant isolation and access checkpoint data belonging to other tenants, including pending writes. This can lead to unauthorized disclosure of sensitive data. The vulnerability does not impact availability but has high confidentiality and integrity impact. It requires attacker control over input to config.configurable and some privileges to trigger the injection.
Mitigation Recommendations
Upgrade to langgraphjs version 1.3.1 or later, where this issue is fixed. Until then, ensure that all checkpoint identifier inputs are strictly validated and coerced to strings before being passed to MongoDB queries. Reject or sanitize any non-string input to prevent injection of MongoDB operators. Applications that only use server-issued, string-typed identifiers with schema validation rejecting non-string fields are not affected and require no further action.
CVE-2026-48121: CWE-943: Improper Neutralization of Special Elements in Data Query Logic in langchain-ai langgraphjs
Description
CVE-2026-48121 is a NoSQL injection vulnerability in langchain-ai's langgraphjs library versions 1.3.0 and below. It arises because checkpoint identifiers used in MongoDB queries are not type-enforced, allowing attackers to inject MongoDB operators to bypass tenant isolation and access unauthorized checkpoint data. The issue is fixed in version 1.3.1.
CVSS v3.1
Score 6.7medium
Affected software
langchain-ai
langgraphjs
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the @langchain/langgraph-checkpoint-mongodb package's CheckpointSaver implementation, which uses MongoDB for storage. In versions 1.3.0 and earlier, checkpoint identifiers (thread_id, checkpoint_ns, checkpoint_id) from config.configurable are passed directly into MongoDB find() queries without enforcing that they are strings. An attacker supplying an object payload containing MongoDB operators like $gt or $ne can manipulate the query logic, bypassing thread scoping and leaking checkpoint data across tenants. This affects applications that accept untrusted input for these identifiers without coercion or schema validation. Applications that enforce string-only identifiers with schema validation are not vulnerable. The vulnerability is fixed in version 1.3.1.
Potential Impact
Successful exploitation allows an attacker with limited privileges to bypass tenant isolation and access checkpoint data belonging to other tenants, including pending writes. This can lead to unauthorized disclosure of sensitive data. The vulnerability does not impact availability but has high confidentiality and integrity impact. It requires attacker control over input to config.configurable and some privileges to trigger the injection.
Mitigation Recommendations
Upgrade to langgraphjs version 1.3.1 or later, where this issue is fixed. Until then, ensure that all checkpoint identifier inputs are strictly validated and coerced to strings before being passed to MongoDB queries. Reject or sanitize any non-string input to prevent injection of MongoDB operators. Applications that only use server-issued, string-typed identifiers with schema validation rejecting non-string fields are not affected and require no further action.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-20T18:46:58.290Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a721d52bf8831d53928c5f1
Added to database: 08/04/2026, 17:11:46 UTC
Last enriched: 08/11/2026, 18:07:12 UTC
Last updated: 09/18/2026, 02:30:22 UTC
Views: 59
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.