Intel

AIKIDO-2026-381687

spring-ai-redis-semantic-cache is vulnerable to Use of Weak Hash

Use of Weak HashCVE-2026-59308 Published Aug 22, 2026

42

Medium Risk

This Affects:

JAVAspring-ai-redis-semantic-cache
2.0.0 - 2.0.0
Fixed in 2.0.1
Are you affected? Scan for Free

TL;DR

spring-ai-redis-semantic-cache isolates cached responses with a truncated SHA-256 of the system prompt. Distinct prompts can then collide and share cached replies across tenants or contexts. A caller can receive an answer generated under a different prompt. The patch uses a collision-resistant context key that is not truncated into a shared bucket.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and Spring AI Redis semantic cache isolates entries by truncated SHA-256 context hashes.

Background info

spring-ai-redis-semantic-cache is vulnerable to Use of Weak Hash in versions 2.0.0 - 2.0.0.

How to fix this

Upgrade the org.springframework.ai:spring-ai-redis-semantic-cache library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform