CVE-2026-59319: CWE-943 Improper Neutralization of Special Elements in Data Query Logic in Spring Spring AI
Description
CVE-2026-59319 is a medium severity vulnerability in Spring AI 2.0.0 where the RedisChatMemoryRepository.findByMetadata() method improperly handles user-supplied metadata values. Unlike other methods in the same class, it does not escape special characters in RediSearch queries, allowing injection of RediSearch syntax. This can cause the query to break out of the intended tag clause and match all indexed chat messages across conversations.
CVSS v3.1
Score 4.3medium
Affected software
Spring
Spring AI
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because RedisChatMemoryRepository.findByMetadata() builds RediSearch tag and text queries from caller-supplied metadata without applying the necessary escaping function RediSearchUtil.escape(). This contrasts with other methods like get(), clear(), and findByTimeRange() which properly escape inputs. An attacker who can supply user-controlled values to findByMetadata() on a tag-typed metadata field can inject RediSearch syntax (e.g., x} | *) that breaks out of the tag clause, resulting in queries that match all indexed chat messages across every conversation in the index. The affected product version is Spring AI 2.0.0.
Potential Impact
The vulnerability allows an attacker with the ability to supply user-controlled metadata values to craft queries that bypass intended tag restrictions, potentially exposing all indexed chat messages across conversations. The CVSS score of 4.3 reflects a low confidentiality impact with no integrity or availability impact. There is no indication of known exploits in the wild.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Users should monitor the vendor advisory for updates. Until a fix is released, avoid passing untrusted user input directly to the findByMetadata() method on tag-typed metadata fields or implement manual escaping of special characters in such inputs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-07-04T18:14:10.167Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a909cfbacd9273b49b2d304
Added to database: 08/27/2026, 20:24:27 UTC
Last enriched: 09/10/2026, 04:08:38 UTC
Last updated: 10/10/2026, 18:48:20 UTC
Views: 90
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.