Live threats

All CVEs / langchain-ai

CVE-2026-106119langchain-ai langchainjs

Medium 6.0

Priority
36
CVSS 4.0
6.0
EPSS
—
Auth required
Yes
Published
Oct 6, 2026
Updated
Oct 6, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-943
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for langchainjs.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm @langchain/mongodb < 1.3.1 1.3.1 npm install @langchain/mongodb@1.3.1

Per OSV / GitHub Advisories (GHSA-m6rx-h84q-8r95). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.