Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure
Vulnerability Description
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.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Vulnerability Type
数据查询逻辑中特殊元素的不当中和
Vulnerability Title
LangChain MongoDB 输入验证错误漏洞
Vulnerability Description
LangChain MongoDB是LangChain公司的一款面向大语言模型应用的数据库集成工具,支持向量存储、聊天记录持久化与缓存管理。 LangChain MongoDB存在输入验证错误漏洞,该漏洞源于MongoDBSaver.list()、MongoDBSaver.alist()和MongoDBStore.search()将过滤字典合并到MongoDB查询中,未递归拒绝以$开头的键,经过身份验证的调用者可通过HTTP查询参数、请求体字段或代理工具参数控制filter参数并注入$regex或$whe
CVSS Information
N/A
Vulnerability Type
N/A