GHSA-533j-2v4q-mw5h: LangChain MongoDB has NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure
Summary
A NoSQL injection vulnerability (a type of attack where an attacker can manipulate database queries by injecting special operators) exists in two MongoDB libraries for LangChain: langgraph-checkpoint-mongodb and langgraph-store-mongodb. The vulnerable methods (MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search()) don't properly block MongoDB query operators (special commands prefixed with $) from user input, allowing an authenticated attacker to read data belonging to other users or tenants in a multi-tenant system.
Solution / Mitigation
Upgrade to langgraph-checkpoint-mongodb version 0.3.0 or later, and langgraph-store-mongodb version 0.4.0 or later. If you cannot upgrade immediately, remove or escape MongoDB Query metacharacters such as "$" in your application code before passing any user-controlled input to the filter parameter.
Vulnerability Details
EPSS: 0.0%
Yes
August 20, 2026
Classification
Taxonomy References
Affected Vendors
Affected Packages
Related Issues
CVE-2026-34371: LibreChat is a ChatGPT clone with additional features. Prior to 0.8.4, LibreChat trusts the name field returned by the e
CVE-2024-27444: langchain_experimental (aka LangChain Experimental) in LangChain before 0.1.8 allows an attacker to bypass the CVE-2023-
Original source: https://github.com/advisories/GHSA-533j-2v4q-mw5h
First tracked: August 20, 2026 at 02:01 PM
Classified by LLM (prompt v3) · confidence: 95%