CVE-2026-22729: JSONPath Injection in Spring AI Vector Stores FilterExpressionConverter
A JSONPath injection vulnerability in Spring AI's AbstractFilterExpressionConverter allows authenticated users to bypass metadata-based access controls through crafted filter expressions. User-controlled input passed to FilterExpressionBuilder is concatenated into JSONPath queries without proper escaping, enabling attackers to inject arbitrary JSONPath logic and access unauthorized documents.
Published Mar 18, 2026
Affected packages
org.springframework.ai:spring-ai-vector-store
- Ecosystem
- Maven
- Affected
- >= 1.1.0-M1, < 1.1.3
- Fixed in
- 1.1.3
- Check
mvn dependency:tree -Dincludes=org.springframework.ai:spring-ai-vector-store
org.springframework.ai:spring-ai-vector-store
- Ecosystem
- Maven
- Affected
- < 1.0.4
- Fixed in
- 1.0.4
- Check
mvn dependency:tree -Dincludes=org.springframework.ai:spring-ai-vector-store
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A JSONPath injection vulnerability in Spring AI's AbstractFilterExpressionConverter allows authenticated users to bypass metadata-based access controls through crafted filter expressions. User-controlled input passed to FilterExpressionBuilder is concatenated into JSONPath queries without proper escaping, enabling attackers to inject arbitrary JSONPath logic and access unauthorized documents.
This vulnerability affects applications using vector stores that extend AbstractFilterExpressionConverter for multi-tenant isolation, role-based access control, or document filtering based on metadata.
The vulnerability occurs when user-supplied values in filter expressions are not escaped before being inserted into JSONPath queries. Special characters like ", ||, and && are passed through unescaped, allowing injection of arbitrary JSONPath logic that can alter the intended query semantics.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
