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.
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-22729?
CVE-2026-22729 is considered to have a medium severity level due to its potential to bypass metadata-based access controls.
How do I fix CVE-2026-22729?
To fix CVE-2026-22729, update to the latest version of Spring AI that addresses this JSONPath injection vulnerability.
Who is affected by CVE-2026-22729?
CVE-2026-22729 affects authenticated users of Spring AI who utilize the AbstractFilterExpressionConverter.
What type of vulnerability is CVE-2026-22729?
CVE-2026-22729 is a JSONPath injection vulnerability allowing users to manipulate filter expressions.
What are the risks associated with CVE-2026-22729?
The risks of CVE-2026-22729 include unauthorized access to sensitive data due to bypassed access controls.