Vulnérabilité dans @langchain/langgraph-checkpoint-mongodb (CVE-2026-48121)
Résumé
Vulnérabilité dans @langchain/langgraph-checkpoint-mongodb (CVE-2026-48121). Des informations confidentielles peuvent être exposées. Exploitable via MongoDBSaver. Atténuation : mise à jour vers 1.3.1 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
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.
Attack surface
The vulnerable path was in MongoDBSaver.getTuple(), where thread_id, checkpoint_ns, and checkpoint_id were used in MongoDB find() queries. The same unvalidated values were then reused to fetch pending writes.
Applications were exposed when untrusted input was forwarded into config.configurable (for example, directly from request bodies or query parameters) without string coercion or schema validation.
Who is affected?
Applications are vulnerable if they:
- Use
@langchain/langgraph-checkpoint-mongodbwith multi-tenant or user-isolated thread models. - Accept user-controlled values for
thread_id,checkpoint_ns, orcheckpoint_id. - Pass those values into
app.invoke(),app.stream(), or direct saver methods without validation.
Applications are generally not vulnerable if they:
- Use server-issued identifiers only.
- Source
thread_idfrom trusted URL params that remain strings. - Enforce schema validation that rejects non-string identifier fields.
Impact
An att…
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-48121 a été découverte dans @langchain/langgraph-checkpoint-mongodb.
Des attaquants peuvent cibler un point d'entrée spécifique comme MongoDBSaver à distance pour détourner le produit.
Des informations confidentielles peuvent être exposées. Score CVSS : 6.7/10.
Action : mettez à jour @langchain/langgraph-checkpoint-mongodb vers 1.3.1 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « @langchain/langgraph-checkpoint-mongodb CVE-2026-48121 » sur le site de l'éditeur.
CVE-2026-48121 (@langchain/langgraph-checkpoint-mongodb) — CWE-943 / CVSS v3 6.7
Vecteur d'attaque : réseau adjacent
Surface d'attaque : MongoDBSaver / config.configurable / thread_id / checkpoint_ns
Correctif : 1.3.1 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-943) affecte @langchain/langgraph-checkpoint-mongodb. Les attaquants atteignent le code vulnérable via MongoDBSaver.
Consultez l'avis de l'éditeur pour les versions affectées de @langchain/langgraph-checkpoint-mongodb. Surface d'attaque : MongoDBSaver / config.configurable / thread_id / checkpoint_ns.
Gravité : Moyenne (CVSS 6.7/10). Des informations confidentielles peuvent être exposées.
Mettre à jour vers 1.3.1.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r '@langchain/langgraph-checkpoint-mongodb' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@langchain/langgraph-checkpoint-mongodbを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade @langchain/langgraph-checkpoint-mongodb to 1.3.1ステージング環境で 1.3.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- package github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web github.com
- web security-advisories@github.com
- web github.com