HIGH

CVE-2026-59361

RediSearch Query Injection and Tenant Isolation Bypass in RedisFilterExpressionConverter

Description

RedisVectorStore is vulnerable to RediSearch query injection when metadata filter expressions are built from untrusted values.

RedisFilterExpressionConverter translates Spring AI filter expressions into RediSearch query clauses, but escapes only a subset of the characters that RediSearch treats as query syntax. A value that reaches a filter expression from an untrusted source can therefore change the structure of the executed query instead of being matched as literal text. Compound filter expressions are additionally emitted without grouping, so RediSearch operator precedence can alter the effective meaning of a filter that combines several conditions.

In applications that rely on metadata filters to enforce authorization or tenant isolation, this can broaden a similarity search beyond its intended scope and return documents and embeddings belonging to other tenants. Any application that incorporates user-supplied values into Redis vector store filter expressions is impacted.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.ai » spring-ai-redis-store
>= 1.0.0, <= 1.0.10>= 1.1.0, <= 1.1.9>= 2.0.0, < 2.0.3
2.0.3

Blast radius

1affected artifacts
22affected versions
5dependent artifacts (est.)
138dependent versions

60% of the dependent artifacts (3) still pull an affected version in their latest release.

DepthDependent versions
Direct
26
2 hops
112

Most used dependents

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.