{"id":"CVE-2026-106119","revision":"b63af92d2b7d446ba7b97558368b6c6d","records":[{"revision":"b63af92d2b7d446ba7b97558368b6c6d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-106119","aliases":[],"title":"LangChain: MongoDBChatMessageHistory query injection can allow cross-session access","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.","state":0,"publishedAt":"2026-10-06T18:01:24.262+00:00","modifiedAt":"2026-10-06T19:45:43.997+00:00","affected":[{"ecosystem":"Vendor product","name":"langchainjs","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"langchain-ai\",\n                    \"product\": \"langchainjs\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.5.14\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"mongodb","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"@langchain\",\n                    \"product\": \"mongodb\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 1.3.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":6,"severity":"MEDIUM"}],"references":["https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95","https://github.com/langchain-ai/langchainjs/pull/11672","https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af","https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-106119","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-106119","identifiers":["CVE-2026-106119"]},"retained":false,"historicalAffected":[]}],"coverage":[]}