Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-106119
Published:October 06, 2026
Updated:October 09, 2026
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.
Affected Packages
https://github.com/langchain-ai/langchainjs.git (GITHUB):
Affected version(s) >=@langchain/mongodb@1.0.1 <@langchain/mongodb@1.3.1
Fix Suggestion:
Update to version @langchain/mongodb@1.3.1
@langchain/mongodb (NPM):
Affected version(s) >=1.0.0 <1.3.1
Fix Suggestion:
Update to version 1.3.1
@langchain/mongodb (NPM):
Affected version(s) >=0.0.1 <1.3.1
Fix Suggestion:
Update to version 1.3.1
Do you need more information?
Contact Us
CVSS v4
Base Score:
6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements in Data Query Logic
EPSS
Base Score:
0.46