CVE-2026-145153: LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 Metadata Filter Injection
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulnerability in embedding store metadata filters that writes non-String values into queries via toString() without escaping. Attackers who control loosely typed filter values, such as nested Lists or Maps from request JSON or LLM tool output, can inject SQL or query operators in pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma stores to read other tenants' documents or delete rows via removeAll.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.5.4-beta11 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.12-beta19 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.19.4-beta29 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.23.0-beta33
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using LangChain4j embedding-store metadata filters with pgvector, MariaDB, Milvus, MongoDB Atlas, or Chroma are affected when filter values can be supplied as non-String objects.
What does an attacker need to control?
An attacker needs control of loosely typed metadata-filter values, such as nested Lists or Maps originating in request JSON or LLM tool output. Those values are converted with toString() and inserted into queries without escaping.
What could exploitation allow?
Depending on the backing store and injected query syntax, an attacker may read documents belonging to other tenants or delete rows through removeAll.
How can I determine whether my LangChain4j version is affected?
Check whether the deployed version is earlier than the applicable fixed release: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, or 1.23.0-beta33. Also review metadata-filter input paths for nested or otherwise non-String values.