{"answers":{"affected":"2 open source packages ship an affected version, including @langchain/langgraph-checkpoint-mongodb.","exploited":"There is no known exploitation of CVE-2026-48121 in the wild and no public exploit code.","fix":"Upgrade @langchain/langgraph-checkpoint-mongodb to 1.3.1 or later.","what":"CVE-2026-48121 is a medium-severity SQL injection vulnerability in langchain-ai langgraphjs, published on 4 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-48121 and fix it if it is affected.\n\nWhat it is: CVE-2026-48121 is a medium-severity SQL injection vulnerability in langchain-ai langgraphjs, published on 4 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-48121 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @langchain/langgraph-checkpoint-mongodb (npm): affected all versions; fixed in 1.3.1\n- @langchain/langgraph-checkpoint-mongodb (npm): affected all versions; fixed in 1.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48121/ (Markdown: https://insights.sbomify.com/CVE-2026-48121/index.md)","id":"CVE-2026-48121","markdown":"https://insights.sbomify.com/CVE-2026-48121/index.md","name":"CVE-2026-48121","record":{"aliases":["GHSA-98xf-r82g-9mhx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"LangGraph MongoDB checkpoint","requires_auth":"low_privilege","summary":"Attackers can inject NoSQL operators into checkpoint identifiers to bypass thread scoping and leak cross-tenant state data.","user_interaction":"required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-09-30","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-30T01:15:11Z","kind":"github_poc","ref":"https://github.com/decker757/cs440-langgraph-nosql-demo","stars":0,"title":"Local classroom demo of NoSQL operator injection in LangGraph's MongoDBSaver (GHSA-98xf-r82g-9mhx / CVE-2026-48121). Fictional data only."}],"tier":"poc_unverified"},"has_fix":true,"headline":"@langchain/langgraph-checkpoint-mongodb: NoSQL parameter injection in MongoDBSaver allows cross-tenant state access","id":"CVE-2026-48121","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Workspace settings can override executable and Gemfile paths used by the Ruby LSP VS Code extension","id":"CVE-2026-48122"},"packages":[{"ecosystem":"npm","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"@langchain/langgraph-checkpoint-mongodb","purl":null,"source":"GHSA-98xf-r82g-9mhx"},{"ecosystem":"npm","fixed":["1.3.1"],"introduced":["0"],"last_affected":[],"package":"@langchain/langgraph-checkpoint-mongodb","purl":"pkg:npm/%40langchain/langgraph-checkpoint-mongodb","source":"GHSA-98xf-r82g-9mhx"}],"prev":{"headline":"Kakoune has a Critical RCE via Autorestore Backup Filename Injection","id":"CVE-2026-48120"},"products":["langgraphjs"],"published":"2026-08-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-04","vendors":["langchain-ai"]},"summary":"Attackers can inject NoSQL operators into checkpoint identifiers to bypass thread scoping and leak cross-tenant state data.","url":"https://insights.sbomify.com/CVE-2026-48121/"}