Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @langchain/langgraph-checkpoint-mongodb
  4. ›
  5. CVE-2026-48121

CVE-2026-48121: LangGraph has NoSQL parameter injection in MongoDBSaver, allowing cross-tenant state access

June 12, 2026

A NoSQL injection vulnerability existed in MongoDBSaver where checkpoint identifier fields from config.configurable were used in MongoDB queries without strict type enforcement. In vulnerable versions, attacker-controlled object payloads (for example MongoDB operators like $gt and $ne) could be interpreted as query operators instead of literal identifier values.

This could bypass intended thread scoping and return checkpoints from other tenants.

References

  • github.com/advisories/GHSA-98xf-r82g-9mhx
  • github.com/langchain-ai/langgraphjs/commit/284226c7ca164b3c81fe2d9e32b10f1fc6b99a3c
  • github.com/langchain-ai/langgraphjs/issues/2351
  • github.com/langchain-ai/langgraphjs/pull/2397
  • github.com/langchain-ai/langgraphjs/security/advisories/GHSA-98xf-r82g-9mhx
  • nvd.nist.gov/vuln/detail/CVE-2026-48121

Code Behaviors & Features

Detect and mitigate CVE-2026-48121 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.1

Fixed versions

  • 1.3.1

Solution

Upgrade to version 1.3.1 or above.

Impact 6.7 MEDIUM

CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Source file

npm/@langchain/langgraph-checkpoint-mongodb/CVE-2026-48121.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:32 +0000.