Disclosure summary
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.
Source-reported weakness categories
CWE-943
Source-specific records & product guidance
Sources retain their own attribution and scoring. Follow the original record to confirm affected versions, fixed releases, and configuration conditions.
GitHub Reviewed Security Advisories · GHSA-m6rx-h84q-8r95
Open original source · Updated Oct 08, 2026
LangChain: MongoDBChatMessageHistory query injection can allow cross-session access
Source severity: MEDIUM / 6
| Ecosystem | Package | Affected range | First patched |
|---|---|---|---|
| npm | @langchain/mongodb | 1.3.1 |
NIST National Vulnerability Database · NVD-CVE-2026-106119
Open original source · Updated Oct 06, 2026
Only CPE matches marked vulnerable=true are indexed. AND/OR platform conditions must be checked in the original NVD record.
Original records & references
PUBLISHED 2026-10-06T15:17:42-04:00
MODIFIED 2026-10-06T16:17:17-04:00
INGESTED 2026-10-10T20:50:03-04:00