News · LangChain4j · 2 min read
Event date: · Published:
LangChain4j patches critical filter injection flaw in embedding stores
LangChain4j patched a critical vulnerability letting attackers inject malicious values into embedding-store filters, risking cross-tenant data leaks and mass deletion.
LangChain4j, a Java framework widely used for building LLM and RAG applications, patched a critical security vulnerability on December 4, 2026, according to a GitHub Security Advisory. The flaw let attackers inject malicious values into embedding-store metadata filters, opening the door to cross-tenant document leaks and mass deletion of vector data across several widely used database backends.
What changed
- The flaw is tracked as
CVE-2026-145153, also listed asGHSA-cc9q-jj3c-vxv8. - It carries a CVSS v4 score of 9.2, rated Critical.
- The issue is classified as
CWE-89, a metadata filter injection in embedding-store integrations. - It affects the pgvector, MariaDB, Milvus, MongoDB Atlas and Chroma embedding store backends.
- Non-String filter values were serialized through an unescaped
toString()call, so values coming from JSON requests or LLM tool output could be exploited. - A fix landed in versions
1.5.4-beta11,1.11.12-beta19,1.19.4-beta29and1.23.0-beta33; all earlier beta releases remain affected.
What it means for builders of multi-tenant AI apps
For teams running multi-tenant RAG or agent applications on LangChain4j with pgvector, MariaDB, Milvus, MongoDB Atlas or Chroma, the risk is direct: any JSON request or LLM tool output that reaches a filter value could let one tenant read, or wipe, another tenant's data through the removeAll operation. Anyone running an affected beta release should update immediately to one of the patched versions.
Sources
- GHSA-cc9q-jj3c-vxv8: LangChain4j embedding store metadata filter injection (GitHub Security Advisories, December 4, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.