{"schemaVersion":4,"id":"CVE-2026-106119","aliases":["GHSA-m6rx-h84q-8r95"],"status":"published","duplicateOf":null,"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.","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.41844,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00463},"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":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00463,"percentile":0.41844}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00463,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00463,"percentile":0.41844}]},"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.5.14","endInclusive":false}}],"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.3.1","endInclusive":false}}],"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,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.3.1","endInclusive":false}}],"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}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,60],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00463,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-10-06T19:45:43.997Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0","headline":true},{"type":"cvss","source":"osv_npm","date":"2026-10-06T19:45:43.997Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-10-06T19:45:43.997Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"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/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","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-10-06T19:45:00.727Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00463,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T13:01:25.582Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T13:01:26.078Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"stale"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T13:01:07.092Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T13:01:23.911Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T13:01:22.884Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:13:36.344Z","stale":false,"partial":false}}