{
 "id": "CVE-2026-106119",
 "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.",
 "published": "2026-10-06",
 "last_modified": "2026-10-06",
 "vuln_status": "Awaiting Analysis",
 "cna": "security-advisories@github.com",
 "cvss": {
  "version": "4.0",
  "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",
  "source": "security-advisories@github.com"
 },
 "cwe": [
  "CWE-943"
 ],
 "products": [
  {
   "vendor": "LangChain",
   "product": "LangChain",
   "versions_affected": null,
   "fixed_in": null,
   "product_id": "langchain"
  }
 ],
 "category": "framework",
 "surface": [],
 "kev": null,
 "fix": {
  "status": "unknown",
  "version": null,
  "url": null
 },
 "references": [
  {
   "url": "https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af",
   "source": "security-advisories@github.com",
   "tags": []
  },
  {
   "url": "https://github.com/langchain-ai/langchainjs/pull/11672",
   "source": "security-advisories@github.com",
   "tags": []
  },
  {
   "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1",
   "source": "security-advisories@github.com",
   "tags": []
  },
  {
   "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95",
   "source": "security-advisories@github.com",
   "tags": []
  }
 ],
 "related_agents": [
  "langchain-langchain",
  "langchain-langchain-deep-agents"
 ],
 "related_incidents": [],
 "match": {
  "tests": [
   "A:cpe"
  ],
  "terms": [
   "langchain:langchain:langchain"
  ]
 },
 "status": "candidate",
 "note": null,
 "reviewer": null,
 "checked_on": null,
 "retrieved_on": "2026-10-25"
}