CVE-2026-22729
JSONPath Injection in Spring AI Vector Stores FilterExpressionConverter
Description
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.ai » spring-ai-vector-store | < 1.0.4>= 1.1.0-M1, < 1.1.3 | 1.0.4, 1.1.3 |
Blast radius
26% of the dependent artifacts (101) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 567 |
| 2 hops | 819 |
| 3 hops | 531 |
| 4 hops | 251 |
| 5 hops | 29 |
| 6 hops | 85 |
Most used dependents
- com.embabel.agent » embabel-agent-api67 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-core63 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-dashscope50 usages
- io.github.agentic-spring-ai » agentic-spring-ai-dashscope43 usages
- io.jaiclaw » jaiclaw-spring-boot-starter43 usages
- io.jaiclaw » jaiclaw-gateway35 usages
- org.springframework.ai » spring-ai-rag32 usages
- org.springframework.ai » spring-ai-autoconfigure-vector-store-observation25 usages
- org.springframework.ai » spring-ai-test19 usages
- com.embabel.agent » embabel-agent-platform-autoconfigure19 usages
- com.alibaba.cloud.ai » spring-ai-alibaba-graph-core17 usages
- org.springframework.ai » spring-ai-advisors-vector-store16 usages
- org.apache.camel » camel-allcomponents16 usages
- org.apache.camel » camel-catalog-maven16 usages
- io.jaiclaw » jaiclaw-starter-shell16 usages
Computed from the dependency graph of build 20261125.2201 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-22729 | nvd.nist.gov |
| Package | spring-projects/spring-ai | github.com |
| Web | spring-projects/spring-ai release v1.0.4 | github.com |
| Web | spring-projects/spring-ai release v1.1.3 | github.com |
| Web | security/cve-2026-22729 | spring.io |
