Skip to content
HighVulnerabilityLLM-specific

CVE-2026-106119: LangChain MongoDBChatMessageHistory query injection via session identifier

Identifier
CVE-2026-106119
Published
Record updated
View JSON
Affected
  • @langchain/mongodb <= 1.3.0
Fixed in
1.3.1
  • released September 27, 2026, 9 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

LangChain versions before 1.3.1 let MongoDBChatMessageHistory accept an untrusted structured session identifier without enforcing the documented string type. When several users' histories share one MongoDB collection, the identifier is interpreted as a MongoDB query condition instead of a literal value. An attacker who can invoke chat-history operations can read, modify, or delete another user's conversation. Applications that use authenticated, server-controlled string identifiers are not affected.

Mitigation

Fixed in version 1.3.1.