Skip to content
MediumVulnerability

GHSA-98xf-r82g-9mhx: LangGraph has NoSQL parameter injection in MongoDBSaver, allowing cross-tenant state access

Published
Record updated
View JSON
Affected
  • @langchain/langgraph-checkpoint-mongodb <= 1.3.0
Fixed in
1.3.1
  • released May 18, 2026, 25 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

LangGraph's `MongoDBSaver` in `@langchain/langgraph-checkpoint-mongodb` used `thread_id`, `checkpoint_ns` and `checkpoint_id` from `config.configurable` in MongoDB `find()` queries without strict type checks. Attacker-supplied operator objects such as `$gt` and `$ne` could be treated as query operators, letting them return checkpoints from other tenants, including state, metadata and pending writes.

Mitigation

Fixed in @langchain/langgraph-checkpoint-mongodb 1.3.1, which adds runtime validation for configurable checkpoint identifiers and rejects invalid values before query and write paths run. Upgrade to 1.3.1 or later. Validate identifier fields at API boundaries and avoid passing raw client objects into graph config.