# CVE-2026-59319: Spring AI RedisChatMemoryRepository RediSearch injection in findByMetadata()

Source: https://junglewise.ai/threats/cve-2026-59319-spring-ai-redischatmemoryrepository-redisearch-injection-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-27. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-59319 · Severity: medium · CVSS 4.3 · Published 2026-08-27

Spring AI is a Java framework for building AI-powered applications. The RedisChatMemoryRepository component, which stores and retrieves conversation history, fails to sanitize user-supplied metadata values before using them in RediSearch queries. An attacker who controls metadata passed to the findByMetadata() method can inject RediSearch syntax to break out of intended query constraints and access all chat messages in the entire system, potentially exposing sensitive conversations across multiple users.

Technologies: [VMware Spring Ai](https://junglewise.ai/threats/technologies/spring-ai). Vendors: [VMware](https://junglewise.ai/threats/vendors/vmware).

## Quick answers

**Is CVE-2026-59319 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59319 being exploited in the wild.

**How severe is CVE-2026-59319?** Medium severity, with a CVSS score of 4.3, published 27 August 2026.

**Which products and versions are affected?** Spring Spring AI 2.0.0.

**Is there a fix for CVE-2026-59319?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-59319 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-59319?** Check whether you run VMware Spring Ai. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is a RediSearch query injection flaw in the findByMetadata() method of RedisChatMemoryRepository. The method constructs tag and text queries directly from caller-supplied metadata values without invoking RediSearchUtil.escape(), unlike other methods in the same class (get(), clear(), findByTimeRange()) that properly escape inputs. An attacker who provides user-controlled values to metadata parameters on tag-typed fields can inject RediSearch syntax operators (e.g., "x} | *") that escape the tag clause and match all indexed documents. The attack requires the ability to invoke findByMetadata() with attacker-controlled input, but does not require authentication or special privileges beyond application-level access. This allows unauthorized access to chat messages across all conversations in the Redis index.

## Affected products

- Spring Spring AI 2.0.0

## Timeline

- 2026-08-27: disclosed

## References

- [https://spring.io/security/cve-2026-59319](https://spring.io/security/cve-2026-59319)

## Related threats

- [Spring AI path traversal in ResourceCacheService](https://junglewise.ai/threats/cve-2026-59294-spring-ai-path-traversal-in-resourcecacheservice)
- [Spring AI tool calling privilege escalation](https://junglewise.ai/threats/cve-2026-59318-spring-ai-tool-calling-privilege-escalation)
- [Spring AI Semantic Cache context hash isolation bypass](https://junglewise.ai/threats/cve-2026-59308-spring-ai-semantic-cache-context-hash-isolation-bypass)
- [Spring AI unbounded session accumulation denial of service](https://junglewise.ai/threats/cve-2026-59279-spring-ai-unbounded-session-accumulation-denial-of-service)
- [VMware Spring AI query injection in Vector Stores](https://junglewise.ai/threats/cve-2026-47835-vmware-spring-ai-query-injection-in-vector-stores)
