CVE-2026-106119LangChain: MongoDBChatMessageHistory query injection can allow cross-session access
Updated under an hour ago ()
Does this affect you?
It affects langchain-ai langchainjs and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory does not enforce the documented string type for an untrusted structured session identifier at runtime, allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when multiple users' histories are stored in a shared MongoDB collection. An attacker able to invoke chat-history operations can read, modify, or delete another user's stored conversation. Applications using authenticated, server-controlled string identifiers are not affected. This issue is fixed in version 1.3.1.
- CVSS
- 6.0 MEDIUM (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
- Weakness (CWE)
- CWE-943
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Awaiting Analysis
- Record last updated
- Oct 6, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
langchain-ai langchainjs langchain_ai:langchainjs (from the name) | before 1.5.14 | CNA record |
@langchain mongodb langchain:mongodb (from the name) | before 1.3.1 | CNA record |
References
- https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95x-refsource-confirm
- https://github.com/langchain-ai/langchainjs/pull/11672x-refsource-misc
- https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79afx-refsource-misc
- https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1x-refsource-misc
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.