Use of a Broken or Risky Cryptographic Algorithm Affecting org.springframework.ai:spring-ai-redis-semantic-cache package, versions [2.0.0,2.0.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of a Broken or Risky Cryptographic Algorithm vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKAI-19233330
  • published23 Aug 2026
  • disclosed21 Aug 2026
  • creditWayde Shi

Introduced: 21 Aug 2026

NewCVE-2026-59308  (opens in a new tab)
CWE-327  (opens in a new tab)

How to fix?

Upgrade org.springframework.ai:spring-ai-redis-semantic-cache to version 2.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of a Broken or Risky Cryptographic Algorithm due to the extractContextHash logic in SemanticCacheAdvisor.java. An attacker can receive cached responses from an unrelated system prompt by sending requests whose prompts collide under the truncated context hash. The cache uses only the first 8 hex characters of a SHA-256 digest to identify the system prompt context, so different prompts can map to the same context_hash. This breaks semantic cache isolation and can return another context’s cached answer to a user whose request should have been handled separately.

CVSS Base Scores

version 4.0
version 3.1