{"cve":"CVE-2026-48121","nvd":{"published":"2026-08-04T17:16:55.267","modified":"2026-10-24T16:10:00.153","status":"Awaiting Analysis","description":"@langchain/langgraph-checkpoint-mongodb provides a LangGraph.js CheckpointSaver implementation that uses MongoDB for storage. Versions 1.3.0 and below are vulnerable to NoSQL injection: checkpoint identifiers (thread_id, checkpoint_ns, checkpoint_id) from config.configurable are passed into MongoDB find() queries in MongoDBSaver.getTuple() without type enforcement. If an attacker supplies an object payload (such as MongoDB operators $gt or $ne) instead of a string, it can be interpreted as a query operator, bypassing thread scoping and leaking checkpoints, including pending writes, across tenants. Applications are at risk if they forward untrusted input into config.configurable without coercing it to strings or validating it against a schema, particularly in multi-tenant or user-isolated setups. Apps that only use server-issued, string-typed identifiers with schema validation rejecting non-string fields are not affected. This issue has been fixed in version 1.3.1.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6.7},"cwes":["CWE-943"],"references":["https://github.com/langchain-ai/langgraphjs/commit/284226c7ca164b3c81fe2d9e32b10f1fc6b99a3c","https://github.com/langchain-ai/langgraphjs/issues/2351","https://github.com/langchain-ai/langgraphjs/security/advisories/GHSA-98xf-r82g-9mhx"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-48121","score":0.00355,"percentile":0.28916,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-98xf-r82g-9mhx","url":"https://osv.dev/vulnerability/GHSA-98xf-r82g-9mhx","summary":"LangGraph has NoSQL parameter injection in MongoDBSaver, allowing cross-tenant state access","modified":"2026-09-10T03:50:49.235778397Z","packages":[{"ecosystem":"npm","name":"@langchain/langgraph-checkpoint-mongodb","purl":"pkg:npm/%40langchain/langgraph-checkpoint-mongodb","ranges":["<1.3.1"],"fixed":["1.3.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}