Incomplete Escaping in RedisChatMemoryRepository Query Methods

MEDIUM | NOVEMBER 19, 2026 | CVE-2026-59348

Description

RedisChatMemoryRepository is vulnerable to RediSearch query injection when processing untrusted input.

The repository builds RediSearch queries from caller-supplied conversation content and metadata values. A prior fix added escaping to one of these query-building paths, but other paths that construct queries the same way were left unescaped. An attacker who controls a value passed into one of the unescaped paths can include RediSearch query syntax that alters the structure of the executed query rather than being treated as plain search text. This can broaden a search beyond its intended scope, allowing retrieval of, or interference with, chat messages outside the caller's own conversation. Any application that passes end-user-supplied content or metadata into RedisChatMemoryRepository's search methods is impacted.

Affected Spring Products and Versions

Spring AI:

  • 2.0.0 - 2.0.2

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
2.0.3OSS
2.0.2.1Enterprise Support Only

No further mitigation steps are necessary.

Credit

The issue was reported responsibly by Yu Bao from PayPal Cyber Security Team and independently reported by Sai Sreewathsa Kovalluri and Kannan K (Researchers) of Innspark Solutions Private Limited (https://innspark.in)

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all