SQL Injection Affecting org.springframework.ai:spring-ai-model-chat-memory-repository-redis package, versions [2.0.0,2.0.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKAI-22732860
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59348  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade org.springframework.ai:spring-ai-model-chat-memory-repository-redis to version 2.0.3 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the query-building process in RedisChatMemoryRepository when handling untrusted input. An attacker can retrieve or interfere with chat messages outside the intended conversation scope by injecting RediSearch query syntax through unescaped input values.

CVSS Base Scores

version 4.0
version 3.1