Back to CVE records
Medium 6.0Published Oct 6, 2026

CVE-2026-106119LangChain: MongoDBChatMessageHistory query injection can allow cross-session access

Updated under an hour ago ()

Does this affect you?

It affects langchain-ai langchainjs and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
6.0 MEDIUM (v4.0, CNA)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
Weakness (CWE)
CWE-943
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Awaiting Analysis
Record last updated
Oct 6, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
langchain-ai langchainjs
langchain_ai:langchainjs (from the name)
before 1.5.14
CNA record
@langchain mongodb
langchain:mongodb (from the name)
before 1.3.1
CNA record

References

  • x-refsource-confirm
  • x-refsource-misc
  • x-refsource-misc
  • x-refsource-misc

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.