CVE-2026-59348Spring AI Improper Neutralization of Special Elements in Data Query Logic
Spring
Vulnerability Summary
Incomplete Escaping in RedisChatMemoryRepository Query Methods. RedisChatMemoryRepository is vulnerable to RediSearch query injection when processing untrusted input. The repository builds RediSearch queries from caller-supplied conversation content and metadata values. A prior fix added escaping to one of these query-building paths, but other paths that construct queries the same way were left unescaped. An attacker who controls a value passed into one of the unescaped paths can include RediSearch query syntax that alters the structure of the executed query rather than being treated as plain search text. This can broaden a search beyond its intended scope, allowing retrieval of, or interference with, chat messages outside the caller's own conversation. Any application that passes end-user-supplied content or metadata into RedisChatMemoryRepository's search methods is impacted. Affected artifact: org.springframework.ai:spring-ai-model-chat-memory-repository-redis.
CVSS v3.1 Base Metrics — Score 4.8 (MEDIUM)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:NAttack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityNone
Affected & Patched Versions
- Spring AI 2.0.0 through 2.0.2
- Spring AI 2.0.3 (open source)
- Spring AI 2.0.2.1 (commercial support only)
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Spring AI and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 19, 2026Published
- Nov 19, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Spring AI CVEsYou are reading CVE-2026-59348. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://spring.io/security/cve-2026-59348
Data last checked: Nov 24, 2026 05:01 UTC