INCIDENT MAP

Browse / RAG and Vector Store Weaknesses / CVE-2026-22729

JSONPath Injection in Spring AI Vector Stores FilterExpressionConverter

CVE-2026-22729 · 2026-03-18 high

Class
RAG and Vector Store Weaknesses (filed by a model that read the advisory)
Technique
Authentication and access control
Affected
org.springframework.ai:spring-ai-vector-store (Maven)
Gets past
Input filter or sanitiser
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

Unescaped user values in metadata filter expressions are spliced into JSONPath queries, letting attackers alter the filter and retrieve documents they should not see. (Our summary, written by a model. The source text is below.)

Details

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

Source: GitHub Advisory Database, used under CC BY 4.0.