{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-106119","id":"CVE-2026-106119","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 abl","descriptionLong":"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.","published":"2026-10-06T18:01:24.262Z","updated":"2026-10-28T02:30:21.560884675Z","reserved":"2026-10-06T15:33:55.333Z","status":"PUBLISHED","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6,"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6,"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"}],"rating":"medium","products":["langchain-ai langchainjs","@langchain mongodb"],"affectedProducts":[{"vendor":"langchain-ai","product":"langchainjs","defaultStatus":null,"versions":[{"version":"< 1.5.14","status":"affected"}],"platforms":[]},{"vendor":"@langchain","product":"mongodb","defaultStatus":null,"versions":[{"version":"< 1.3.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@langchain/mongodb","purl":"pkg:npm/%40langchain/mongodb","ranges":["<1.3.1"],"fixed":["1.3.1"],"advisory":"GHSA-m6rx-h84q-8r95"}],"cwes":["CWE-943"],"aliases":["GHSA-m6rx-h84q-8r95"],"references":[{"url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/langchain-ai/langchainjs/pull/11672","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106119.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-106119","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchainjs","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00463,"epssPercentile":0.41037,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-106119","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-106119","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-106119","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-m6rx-h84q-8r95","ok":true,"note":"GHSA-m6rx-h84q-8r95"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-106119","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["mongodb"],"critical":[],"attention":null}