LangChain: MongoDBChatMessageHistory query injection can allow cross-session access
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| langchain-ai | langchainjs | affected |
|
||||||
| @langchain | mongodb | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Langchain-ai | Langchainjs |
|
||||||||
| Langchain-ai | Mongodb |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-m6rx-h84q-8r95 | LangChain: MongoDBChatMessageHistory query injection can allow cross-session access |
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.463% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Langchain-ai
Langchain-ai langchainjs Langchain-ai mongodb |
|
| Vendors & Products |
Langchain-ai
Langchain-ai langchainjs Langchain-ai mongodb |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | LangChain: MongoDBChatMessageHistory query injection can allow cross-session access | |
| Weaknesses | CWE-943 | |
| References |
|
|
| Metrics |
cvssV4_0
|