Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') Affecting org.springframework.data:spring-data-keyvalue package, versions [,3.5.12)[4.0.0-M1,4.0.6)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKDATA-17308644
  • published11 Jun 2026
  • disclosed10 Jun 2026
  • creditUnknown

Introduced: 10 Jun 2026

CVE-2026-41719  (opens in a new tab)
CWE-917  (opens in a new tab)

How to fix?

Upgrade org.springframework.data:spring-data-keyvalue to version 3.5.12, 4.0.6 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection') in the SpelPropertyComparator function. An attacker can execute arbitrary SpEL expressions by supplying crafted input to the Sort parameter in repository query methods.

Note:

This is only exploitable if all the conditions below are true:

  • The SpelPropertyComparator is used for sorting;

  • The method is exposed to untrusted input (e.g. via a custom REST endpoint);

  • Unsanitized user input is directly passed to the method.

CVSS Base Scores

version 4.0
version 3.1