Spring Framework Denial of Service via SpEL Collection Selection

MEDIUM | NOVEMBER 19, 2026 | CVE-2026-59431

Description

Applications which accept user-supplied Spring Expression Language (SpEL) expressions may be vulnerable to a Denial of Service (DoS) attack.

Specifically, an application is vulnerable when the following condition is met:

  • The application accepts and evaluates untrusted or user-controlled SpEL expressions.

When this condition is met, an attacker can supply an expression that uses the collection selection operator to perform significantly more work than permitted by the maximum operations limit introduced for CVE-2026-41850, which can lead to excessive CPU consumption.

Affected Spring Products and Versions

Spring Framework:

  • 7.0.0 - 7.0.10
  • 6.2.0 - 6.2.20
  • 6.1.0 - 6.1.29
  • 6.0.0 - 6.0.32
  • 5.3.0 - 5.3.50
  • 5.2.26.RELEASE and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.0.11OSS
7.0.10.1Enterprise Support Only
6.2.21Enterprise Support Only
6.1.30Enterprise Support Only
6.0.33Enterprise Support Only
5.3.51Enterprise Support Only
5.2.27.RELEASEEnterprise Support Only

Fixed versions of the Spring Expression Language account for additional operations when enforcing the maxOperations limit. As a result, some expressions that previously completed within the limit (default: 10,000) may now exceed it, in which case a SpelEvaluationException (EL1085E) is thrown. If necessary, developers can adjust this limit locally via SpelParserConfiguration or globally using the spring.expression.maxOperations JVM system property or Spring property. Care should be taken when increasing this value, as higher limits reduce the effectiveness of the mitigation against resource exhaustion.

Credit

This issue was reported by YLChen-007.

History

  • 2026-11-19: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

TrueSource Spring Enterprise offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all