org.springframework.ai:spring-ai-redis-semantic-cache@2.0.0

  • latest version

    2.0.1

  • latest non vulnerable version

  • first published

    7 months ago

  • latest version published

    6 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.springframework.ai:spring-ai-redis-semantic-cache package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • L
    Use of a Broken or Risky Cryptographic Algorithm

    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.

    How to fix Use of a Broken or Risky Cryptographic Algorithm?

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

    [2.0.0,2.0.1)