7.7 HIGH
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): Low (L)
- User Interaction (UI): None (N)
- Scope (S): Changed (C)
- Confidentiality (C): High (H)
- Integrity (I): None (N)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): Low (L)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Changed (C)
- Modified Integrity (MI): None (N)
- Modified Availability (MA): None (N)
by @LeSuisse Activity log
- Created suggestion
-
@LeSuisse
ignored
4 packages
- python314Packages.langchain-mongodb
- python313Packages.langchain-mongodb
- python313Packages.langgraph-checkpoint-mongodb
- python314Packages.langgraph-checkpoint-mongodb
- @LeSuisse accepted
- @LeSuisse published on GitHub
LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure
LangChain MongoDB provides integrations between MongoDB, Atlas, LangChain, and LangGraph. Prior to langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0, MongoDBSaver.list(), MongoDBSaver.alist(), and MongoDBStore.search() incorporate filter dictionaries into MongoDB queries without recursively rejecting keys prefixed with $. An authenticated caller who controls a filter argument through HTTP query parameters, request body fields, or agent tool arguments can inject MongoDB Query Language operators such as $regex or $where. In a multi-tenant deployment that uses the filter to enforce per-user or per-tenant isolation, injected operators can bypass intended equality filtering and expose other tenants' checkpoint or store data. Filters constructed entirely from trusted server-side values have lower practical risk. This issue is fixed in langgraph-checkpoint-mongodb 0.3.0 and langgraph-store-mongodb 0.4.0.
References
-
https://github.com/langchain-ai/langchain-mongodb/pull/384 x_refsource_MISC
Affected products
- ==< 0.4.0
- ==< 0.4.0
- ==< 0.3.0
Matching in nixpkgs
pkgs.python313Packages.langgraph-store-mongodb
Integrations between MongoDB, Atlas, LangChain, and LangGraph
Ignored packages (4)
pkgs.python313Packages.langchain-mongodb
Integration package connecting MongoDB and LangChain
pkgs.python314Packages.langchain-mongodb
Integration package connecting MongoDB and LangChain
pkgs.python313Packages.langgraph-checkpoint-mongodb
Integrations between MongoDB, Atlas, LangChain, and LangGraph
Package maintainers
-
@sarahec Sarah Clark <seclark@nextquestion.net>