Intel

AIKIDO-2026-11182

spring-data-keyvalue is vulnerable to SpEL Injection

SpEL InjectionCVE-2026-41719 Published Today

64

Medium Risk

This Affects:

JAVAspring-data-keyvalue
0.0.1 - 2.7.19
Fixed in 2.7.20
3.0.0 - 3.3.16
Fixed in 3.3.17
3.4.0 - 3.4.14
Fixed in 3.4.15
3.5.0 - 3.5.11
Fixed in 3.5.12
4.0.0 - 4.0.5
Fixed in 4.0.6
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and if SpelPropertyComparator is used with untrusted input for sorting.

Background info

spring-data-keyvalue is vulnerable to SpEL Injection in versions 0.0.1 - 2.7.19, 3.0.0 - 3.3.16, 3.4.0 - 3.4.14, 3.5.0 - 3.5.11 and 4.0.0 - 4.0.5.

How to fix this

Upgrade the org.springframework.data:spring-data-keyvalue library to the patch version.