Skip to main content
EPSS 0.2%top 86%

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

0
Medium
VulnerabilityCVE-2026-48121cvecve-2026-48121cwe-943
Published: 08/04/2026 (08/04/2026, 16:49:57 UTC)
Source: CVE Database V5
Vendor/Project: langchain-ai
Product: 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

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

Affected software

langchain-ai

langgraphjs

Affected versions
<1.3.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 18:07:12 UTC

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.

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-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 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