Skip to content
HighVulnerability

GHSA-533j-2v4q-mw5h: LangChain MongoDB has NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure

Published
Record updated
View JSON
Affected
  • langgraph-store-mongodb < 0.4.0, fixed in 0.4.0, released September 4, 2026, 15 days after disclosure
  • langgraph-checkpoint-mongodb < 0.3.0, fixed in 0.3.0, released November 19, 2025, 274 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

A NoSQL injection flaw in langgraph-checkpoint-mongodb and langgraph-store-mongodb lets a caller who controls the filter argument embed MongoDB query operators, because keys prefixed with $ are not rejected. The affected methods are MongoDBSaver.list(), MongoDBSaver.alist() and MongoDBStore.search(), and the advisory rates the issue High (CVSS 4.0 base 7.1, CVSS 3.1 base 7.7), with cross-tenant read exposure of checkpoint data.

Mitigation

Upgrade langgraph-checkpoint-mongodb to 0.3.0 or later and langgraph-store-mongodb to 0.4.0 or later. If an upgrade is not possible immediately, remove or escape MongoDB query metacharacters such as "$" from user-controlled input before passing it to the filter parameter.