Spring AI cache flaw can serve one user's answers to another
Spring disclosed a critical 9.1 flaw on 2 December 2026: a shared Redis semantic cache in Spring AI could hand one user's chatbot answers to another user. Version 2.0.3 fixes it; older lines get enterprise-only releases.

Affects
- Spring AI
Tracked as
CVE-2026-59417Spring AI · CVSS 9.1CVE-2026-59308Spring AI · CVSS 4.2
A chatbot that remembers answers is only helpful if it remembers whose answers they are. Spring disclosed a critical flaw on 2 December 2026 in which a shared cache in Spring AI forgot exactly that — and one user’s answers could be handed to somebody else.
- 9.1CVSS scoreCritical, network reachable, no login needed
- 3Release lines affectedFrom 1.0 through 2.0.2
- NeverCache entries expireEntries written through the advisor do not expire
One cache pool for every user
The flaw sits in spring-ai-redis-semantic-cache, the add-on that stores chatbot replies in Redis so a similar question can be answered from the cache instead of calling the model again. Apps wire it up through a SemanticCacheAdvisor, and when that advisor is shared by more than one end user, the isolation breaks down.
Cached replies were separated only by a hash of the model’s instructions — the text that tells the chatbot how to behave. Nothing in the cache key said which user, session or tenant the reply belonged to, so every user of the app drew from a single shared pool. When one user asked a question and the answer — possibly containing that user’s own data — was cached, another user asking a similar question could be served that same cached reply.
The same shared pool opens a second door. An attacker can prime a cache entry with content they control, and that content is then served to later users who ask similar questions. And the entries do not go away on their own: cached entries written through the advisor never expire, so a poisoned or leaking entry stays live until somebody clears it.
Spring notes that this is a leftover gap from an earlier fix. CVE-2026-59308, scored 4.2, addressed isolation by the model’s instructions only — it never added the user, session or tenant dimension that would have kept one person’s answers away from another’s.
Which versions are affected, and what fixes them
Affected
- 2.0.0 – 2.0.2
- 1.1.0 – 1.1.9
- 1.0.0 – 1.0.10
Fixed release
- 2.0.3, open source — available now
- 2.0.2.1, enterprise support only
- 1.1.10, enterprise support only
- 1.0.11, enterprise support only
Version 2.0.3 is the one open-source release with the fix, and it is already published on Maven Central. The other fixed releases — 2.0.2.1, 1.1.10 and 1.0.11 — are for enterprise support customers only.
The fixed versions add a mandatory SemanticCacheScopeResolver, which decides the scope in which cached replies may be shared. Applications must define one that derives the scope from a trusted source, such as the authenticated principal — never from a value the end user can choose. If upgrading is not possible right away, Spring’s advice is direct: do not use SemanticCacheAdvisor in any application that serves more than one end user or tenant.
The flaw was reported by Sai Sreewathsa Kovalluri and Kannan K of Innspark Solutions, and independently by Daehyun Kang.
What to do now
Close the gap
Check whether your app uses the Redis semantic cache
Look for spring-ai-redis-semantic-cache and a SemanticCacheAdvisor that more than one end user can reach.
Upgrade to the fixed release for your line
Move to 2.0.3, or to 2.0.2.1, 1.1.10 or 1.0.11 if you have enterprise support.
Define a scope resolver from a trusted source
After upgrading, add a SemanticCacheScopeResolver that derives the scope from the authenticated principal, not from anything the end user supplies.
Do not share one advisor across users until patched
If you cannot upgrade yet, stop using SemanticCacheAdvisor in any app that serves more than one user or tenant.
Spring’s advisory is the primary source for the affected and fixed versions, and the NVD entry for CVE-2026-59417 carries the 9.1 score and the weakness details.
Sources
- Cross-User Information Disclosure and Cache Poisoning in Spring AI Redis Semantic CacheSpring
- CVE-2026-59417 DetailNational Vulnerability Database


