{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.5.14"
              },
              {
                "fixed": "1.3.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c8d12783ecc31a0816f3a47da1040fbd3c08fdbc"
            },
            {
              "fixed": "9a65edff01f3cd4db79ff6d8cabec4acf9bc9b3a"
            },
            {
              "fixed": "946e3d856ff1f8ce7f7b9374c83f680a6ada79af"
            }
          ],
          "repo": "https://github.com/langchain-ai/langchainjs",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m6rx-h84q-8r95"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-943"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106119.json"
  },
  "details": "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.",
  "id": "CVE-2026-106119",
  "modified": "2026-10-08T02:30:27.112221565Z",
  "published": "2026-10-06T18:01:24.262Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/langchain-ai/langchainjs/releases/tag/@langchain/mongodb@1.3.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106119.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/langchain-ai/langchainjs/security/advisories/GHSA-m6rx-h84q-8r95"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-106119"
    },
    {
      "type": "FIX",
      "url": "https://github.com/langchain-ai/langchainjs/commit/946e3d856ff1f8ce7f7b9374c83f680a6ada79af"
    },
    {
      "type": "FIX",
      "url": "https://github.com/langchain-ai/langchainjs/pull/11672"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "LangChain: MongoDBChatMessageHistory query injection can allow cross-session access"
}