Spring AI Redis Store has TAG Field Query Injection Through Improper Neutralization of Special Characters
Spring AI
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework.ai:spring-ai-redis-store Maven |
|
|
Original description
In RedisFilterExpressionConverter of spring-ai-redis-store, when a user-controlled string is passed as a filter value for a TAG field, stringValue() inserts the value directly into the @field:{VALUE} RediSearch TAG block without escaping characters.This issue affects Spring AI: from 1.0.0 before 1.0.5, from 1.1.0 before 1.1.4.