Excessive Iteration Affecting org.springframework:spring-expression package, versions [5.3.0,7.0.11)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 Excessive Iteration vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORK-22727167
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditYLChen-007

Introduced: 19 Nov 2026

NewCVE-2026-59431  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-834  (opens in a new tab)

How to fix?

Upgrade org.springframework:spring-expression to version 7.0.11 or higher.

Overview

Affected versions of this package are vulnerable to Excessive Iteration in the Selection class, which implements the SpEL collection selection operators (.?[...], .^[...], .$[...]). An attacker can exhaust CPU by submitting an expression that selects over a large collection, because the selection criterion is evaluated for every element while only matching elements count against the maxOperations limit. This affects only applications that accept and evaluate untrusted SpEL expressions.

Note: This is a bypass of the fix for the vulnerability described in CVE-2026-41850.

CVSS Base Scores

version 4.0
version 3.1