home / blog

2026-12-04 · high

CVE-2026-145153: Injection Vulnerability in LangChain4j

CVE-2026-145153: Injection vulnerability in LangChain4j metadata filters. CVSS 8.1. Patches available.

CVE-2026-145153: Injection Vulnerability in LangChain4j

CVE-2026-145153 is an injection vulnerability present in earlier versions of LangChain4j. The vulnerability occurs when embedding store metadata filters write non-String values into queries via toString() without escaping, allowing an attacker to inject SQL operators or queries in supported databases like pgvector, MariaDB, Milvus, MongoDB Atlas, and Chroma.

The vulnerability has a CVSS score of 8.1, classified as High severity according to official data. Published today on NVD, the vulnerability already shows some attention signals on social media with 3 posts in the last 24 hours. The data shows a concrete impact on tenant data security.

For defense, administrators should immediately update LangChain4j to the latest available version or implement sanitization filters for metadata values. It is crucial to apply the principle of least privilege and monitor suspicious queries to detect exploitation attempts.

At a glance

What
Injection vulnerability in embedding store metadata filters that writes non-String values into queries without escaping
Severity
CVSS 8.1 (High)
Affected versions
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 and 1.23.0-beta33
Fix
Not reported
Status
Published on 2026-12-4 on NVD
Action
Update to the latest available beta version or apply mitigations

Sources: NVD, CVE-2026-145153

← All articles