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

Published Dec 4, 2026
·
Updated

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

1 affected component
maven/dev.langchain4j/langchain4j<1.5.4-beta11, <1.11.12-beta19, <1.19.4-beta29, <1.23.0-beta33

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.5.4-beta11
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.11.12-beta19
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.19.4-beta29
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.23.0-beta33

Event History

Dec 4, 2026
CVE Published
via MITRE·04:09 PM
Data Sourced
via MITRE·04:09 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203