# 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

Source: https://aplosec.si/cve/CVE-2026-145153/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-145153

Critical 9.2 · Reported · Fixed in 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33 · CWE-89 · Maven

# LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 Metadata Filter Injection

CVE-2026-145153 · published 2026-12-04

In plain words: this type of bug lets someone change the queries sent to the database (SQL injection). A fixed release is listed.

## Summary

CVE-2026-145153 affects LangChain4j (Maven) langchain4j-pgvector, -mariadb, -milvus, -mongodb-atlas, -chroma: < 1.5.4-beta11, 1.6.0-beta12 to < 1.11.12-beta19, 1.12.1-beta21 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33; langchain4j-milvus-v2: 1.19.0-beta29 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33: SQL Injection via Non-String Metadata Filter Values (CWE-89). Fixed in 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33. CVSS 4.0 base score 9.2 (Critical), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade LangChain4j to the fixed release on your line: 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33. Releases in the affected ranges (langchain4j-pgvector, -mariadb, -milvus, -mongodb-atlas, -chroma: < 1.5.4-beta11, 1.6.0-beta12 to < 1.11.12-beta19, 1.12.1-beta21 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33; langchain4j-milvus-v2: 1.19.0-beta29 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-12-04 CVE published

## References

- [Referencehttps://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v](https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/langchain4j-before-1.5.4-beta11-1.11.12-beta19-1.19.4-beta29-and-1.23.0-beta33-metadata-filter-injection](https://www.vulncheck.com/advisories/langchain4j-before-1.5.4-beta11-1.11.12-beta19-1.19.4-beta29-and-1.23.0-beta33-metadata-filter-injection)

- [Fix commithttps://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce](https://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce)

- [Fix commithttps://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802](https://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-145153](https://www.cve.org/CVERecord?id=CVE-2026-145153)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-145153](https://nvd.nist.gov/vuln/detail/CVE-2026-145153)

**Severity:** Critical 9.2 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-145153)

**Package:** LangChain4j

**Ecosystem:** Maven

**Affected:** langchain4j-pgvector, -mariadb, -milvus, -mongodb-atlas, -chroma: < 1.5.4-beta11, 1.6.0-beta12 to < 1.11.12-beta19, 1.12.1-beta21 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33; langchain4j-milvus-v2: 1.19.0-beta29 to < 1.19.4-beta29, 1.20.0-beta30 to < 1.23.0-beta33

**Fixed:** 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, 1.23.0-beta33

**Weakness:** CWE-89

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
