{"schemaVersion":3,"id":"CVE-2026-106119","aliases":["GHSA-m6rx-h84q-8r95"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-06T18:01:24.262Z","modified":"2026-10-06T19:45:43.997Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":6,"severity":"medium","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00463,"percentile":0.38772,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-07T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00463,"percentile":0.38772}],"last30":[{"date":"2026-10-07T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00463,"percentile":0.38772}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic","description":"The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/943.html"}],"affected":[{"vendor":"langchain-ai","product":"langchainjs","name":"langchainjs","label":"langchainjs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.5.14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.14","eol":null,"hubHref":"/vendor/langchain-ai/langchainjs"},{"vendor":"@langchain","product":"mongodb","name":"mongodb","label":"mongodb","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.1","eol":null,"hubHref":"/vendor/langchain/mongodb"},{"vendor":"@langchain","product":"mongodb","name":"@langchain/mongodb","label":"mongodb","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@langchain/mongodb","purlType":"npm","versions":[{"text":"< 1.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95","label":"github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/langchain-ai/langchainjs/pull/11672","label":"github.com/langchain-ai/langchainjs/pull/11672","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af","label":"github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1","label":"github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-106119","label":"nvd.nist.gov/vuln/detail/CVE-2026-106119","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/langchain-ai/langchainjs","label":"github.com/langchain-ai/langchainjs","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-06T18:01:24.262Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-06T19:45:43.997Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":24,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T09:24:08.237Z","stale":false,"partial":false}}