CVE-2026-59319: RediSearch Tag Injection in RedisChatMemoryRepository Allows Cross-Conversation Data Exposure

Published Aug 27, 2026
·
Updated

RedisChatMemoryRepository.findByMetadata() builds RediSearch tag and text queries from caller-supplied metadata values without applying RediSearchUtil.escape(), unlike get(), clear(), and findByTimeRange() in the same class which do escape their inputs. An application that passes user-controlled values to findByMetadata() on a tag-typed metadata field allows an attacker to inject RediSearch syntax (e.g. x} | ) that breaks out of the tag clause and matches all indexed chat messages across every conversation in the index. Spring AI 2.0.0

Affected Software

1 affected component
Spring Spring AI=2.0.0

Event History

Aug 27, 2026
CVE Published
via MITRE·06:04 PM
Data Sourced
via MITRE·06:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using Spring AI 2.0.0 are exposed if the application passes user-controlled metadata values to RedisChatMemoryRepository.findByMetadata() for a tag-typed metadata field. The issue affects indexed chat messages in the relevant RediSearch index.

2

What does an attacker need to exploit this?

An attacker needs the ability to supply a metadata value that the application forwards to findByMetadata(). No user interaction is required, but the attacker must have the privileges represented by the CVSS PR:L vector.

3

What data could be exposed?

Injected RediSearch syntax can break out of the intended tag clause and match all indexed chat messages across every conversation in the index. The stated impact is confidentiality loss; integrity and availability impacts are not identified.

4

What can be done before a fix is available?

Do not pass untrusted values directly to findByMetadata() on tag-typed metadata fields. Validate or constrain metadata values and apply RediSearch escaping before constructing or submitting the query value.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203