JSONPath Injection in Spring AI Vector Stores FilterExpressionConverter
High severity
GitHub Reviewed
Published
Mar 18, 2026
to the GitHub Advisory Database
•
Updated Mar 18, 2026
Package
Affected versions
>= 1.1.0-M1, < 1.1.3
< 1.0.4
Patched versions
1.1.3
1.0.4
Description
Published by the National Vulnerability Database
Mar 18, 2026
Published to the GitHub Advisory Database
Mar 18, 2026
Reviewed
Mar 18, 2026
Last updated
Mar 18, 2026
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