CVE-2026-145153
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| langchain4j | langchain4j-pgvector | {"endExcluding":"1.5.4-beta11"} | 1.5.4-beta11 |
| langchain4j | langchain4j-pgvector | {"startIncluding":"1.6.0-beta12","endExcluding":"1.11.12-beta19"} | 1.11.12-beta19 |
| langchain4j | langchain4j-pgvector | {"startIncluding":"1.12.1-beta21","endExcluding":"1.19.4-beta29"} | 1.19.4-beta29 |
| langchain4j | langchain4j-pgvector | {"startIncluding":"1.20.0-beta30","endExcluding":"1.23.0-beta33"} | 1.23.0-beta33 |
| langchain4j | langchain4j-mariadb | {"endExcluding":"1.5.4-beta11"} | 1.5.4-beta11 |
| langchain4j | langchain4j-mariadb | {"startIncluding":"1.6.0-beta12","endExcluding":"1.11.12-beta19"} | 1.11.12-beta19 |
| langchain4j | langchain4j-mariadb | {"startIncluding":"1.12.1-beta21","endExcluding":"1.19.4-beta29"} | 1.19.4-beta29 |
| langchain4j | langchain4j-mariadb | {"startIncluding":"1.20.0-beta30","endExcluding":"1.23.0-beta33"} | 1.23.0-beta33 |
| langchain4j | langchain4j-milvus | {"endExcluding":"1.5.4-beta11"} | 1.5.4-beta11 |
| langchain4j | langchain4j-milvus | {"startIncluding":"1.6.0-beta12","endExcluding":"1.11.12-beta19"} | 1.11.12-beta19 |
| langchain4j | langchain4j-milvus | {"startIncluding":"1.12.1-beta21","endExcluding":"1.19.4-beta29"} | 1.19.4-beta29 |
| langchain4j | langchain4j-milvus | {"startIncluding":"1.20.0-beta30","endExcluding":"1.23.0-beta33"} | 1.23.0-beta33 |
| langchain4j | langchain4j-mongodb-atlas | {"endExcluding":"1.5.4-beta11"} | 1.5.4-beta11 |
| langchain4j | langchain4j-mongodb-atlas | {"startIncluding":"1.6.0-beta12","endExcluding":"1.11.12-beta19"} | 1.11.12-beta19 |
| langchain4j | langchain4j-mongodb-atlas | {"startIncluding":"1.12.1-beta21","endExcluding":"1.19.4-beta29"} | 1.19.4-beta29 |
| langchain4j | langchain4j-mongodb-atlas | {"startIncluding":"1.20.0-beta30","endExcluding":"1.23.0-beta33"} | 1.23.0-beta33 |
| langchain4j | langchain4j-chroma | {"endExcluding":"1.5.4-beta11"} | 1.5.4-beta11 |
| langchain4j | langchain4j-chroma | {"startIncluding":"1.6.0-beta12","endExcluding":"1.11.12-beta19"} | 1.11.12-beta19 |
| langchain4j | langchain4j-chroma | {"startIncluding":"1.12.1-beta21","endExcluding":"1.19.4-beta29"} | 1.19.4-beta29 |
| langchain4j | langchain4j-chroma | {"startIncluding":"1.20.0-beta30","endExcluding":"1.23.0-beta33"} | 1.23.0-beta33 |
| langchain4j | langchain4j-milvus-v2 | {"startIncluding":"1.19.0-beta29","endExcluding":"1.19.4-beta29"} | 1.19.4-beta29 |
| langchain4j | langchain4j-milvus-v2 | {"startIncluding":"1.20.0-beta30","endExcluding":"1.23.0-beta33"} | 1.23.0-beta33 |
References
- https://github.com/langchain4j/langchain4j/commit/055468af94754c981958bbadad45eb282d86efce
- https://github.com/langchain4j/langchain4j/commit/8f6e2210f1a9f8ad92a53e6211861d2b0fbd2802
- https://github.com/langchain4j/langchain4j/security/advisories/GHSA-6wgf-c23j-fj2v
- 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
CWEs
CWE-89 CWE-943
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.