Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

LangChain4j Metadata Filter Injection (CVE-2026-145153)

CVE-2026-145153 is a metadata filter injection flaw in six LangChain4j embedding store modules.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-145153
Vendor
LangChain4j
Affected Product
LangChain4j embedding stores: pgvector, MariaDB, Milvus, Milvus v2, MongoDB Atlas and Chroma
Exploitation
Not confirmed
Published
2026-12-04

It matters when an application passes untrusted, loosely typed values into a filter. A vulnerability intelligence platform can provide a CVE reference while teams verify their deployed modules and data flow.The CNA assigns CVSS 4.0 9.2 Critical and CVSS 3.1 8.1 High. The weakness involves SQL injection (CWE-89) and injection into data query logic (CWE-943), depending on the store. LangChain4j published its advisory on 4 December 2026.

What it allows

How Does CVE-2026-145153 Change a Metadata Query?

LangChain4j says several stores inserted filter values into query text after converting unexpected object types to strings. Values from request JSON or LLM tool output could therefore alter a generated query if the application passed them through without type checks. This is a risk at the application's filter input boundary, rather than a blanket finding for every LangChain4j deployment.

The affected syntax differs by store. In pgvector, nested values in membership filters could alter SQL; before 1.11.0, even String values in those filters were not escaped. MariaDB and Milvus could insert unsupported object values into expressions, while MongoDB Atlas and Chroma could interpret Map values as query operators.

The vendor says a changed search filter could reach other users' or tenants' rows. A manipulated removeAll(Filter) operation could delete rows. These outcomes depend on the vulnerable module, the application's use of those operations, and untrusted values reaching its filters.

What Should Defenders Check for CVE-2026-145153?

Trace where request data and LLM tool output become metadata filter values. Prioritize applications that accept nested objects or collections and use affected embedding store modules for search or removal. Review access controls around those operations and investigate unexpected broad search results or deletions as a defensive inference.

Brandefense Blackhole counted 2 dark-chat items mentioning CVE-2026-145153 from 2026-09-06 through 2026-12-05. The measured unit is a dark-chat item mentioning this identifier. CISA's KEV catalog version dated 4 December 2026 did not list the CVE; the chat count does not establish exploitation.

Who is affected

Which LangChain4j Modules and Versions Are Affected?

The advisory lists langchain4j-pgvector, langchain4j-mariadb, langchain4j-milvus, langchain4j-mongodb-atlas and langchain4j-chroma. For each, the affected lines are below 1.5.4-beta11; 1.6.0-beta12 to below 1.11.12-beta19; 1.12.1-beta21 to below 1.19.4-beta29; and 1.20.0-beta30 to below 1.23.0-beta33. Use the patch management process to compare each installed Maven module with its release line.

The separate langchain4j-milvus-v2 module began at 1.19.0-beta29, according to the vendor. Its affected ranges are 1.19.0-beta29 to below 1.19.4-beta29 and 1.20.0-beta30 to below 1.23.0-beta33. The fixed releases are 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 and 1.23.0-beta33 for applicable modules and lines.

Applications using only String, number, UUID or Boolean filter values are outside the vendor's described non-String case. The exception is pgvector before 1.11.0, where String membership filters were also vulnerable. The vendor also excludes filters made by LanguageModelSqlFilterBuilder, which emits supported scalar types.

Timeline

  1. 2026-12-04

    LangChain4j published GHSA-6wgf-c23j-fj2v; the VulnCheck CNA published CVE-2026-145153.

What to do

  1. Inventory the embedding store modules

    Record the installed LangChain4j Maven artifacts and exact versions. Identify which applications pass request JSON or LLM tool output into metadata filters, especially in multi-tenant search and removal paths.

  2. Upgrade the applicable release line

    Move affected modules to 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 or 1.23.0-beta33, as appropriate for the deployed line. Check the separate milvus-v2 starting version before choosing its fix.

  3. Verify the running dependency

    After deployment, inspect the resolved runtime dependency version for every affected store module. Confirm that the running application uses the patched build, then exercise authorized search and removal paths.

  4. Constrain filter input until rollout

    Allow only String, number, UUID or Boolean metadata values, converting each untrusted value before filter construction. Do not rely on this workaround for pgvector before 1.11.0; upgrade that line.

What Brandefense can do

Frequently Asked Questions

Does CVE-2026-145153 affect every LangChain4j application?

No. The vendor describes affected embedding store modules when applications pass untrusted, loosely typed values to metadata filters. Pgvector before 1.11.0 has an additional String membership-filter issue.

Can a changed filter expose data from another tenant?

Yes, if an exposed application passes untrusted values into a vulnerable search filter. LangChain4j says a modified filter can override conditions added by the application.

What versions contain the fix?

The vendor lists 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29 and 1.23.0-beta33 for their respective release lines. Verify each deployed module and its running version.

Sources

  1. Injection via non-String metadata filter valuesLangChain4j
  2. CVE-2026-145153 CNA recordVulnCheck via CVE.org
  3. Known Exploited Vulnerabilities catalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →