MODERATE

CVE-2026-59430

Spring Framework Unintended Constructor and Method Invocation via Type Conversion in SpEL

Description

Applications which accept user-supplied Spring Expression Language (SpEL) expressions and evaluate them with a SimpleEvaluationContext may be vulnerable to the invocation of constructors or methods through implicit type conversion, bypassing the restrictions on constructor and method invocations.

Specifically, an application is vulnerable when all the following conditions are met:

The application accepts and evaluates untrusted or user-controlled SpEL expressions using SimpleEvaluationContext. The SimpleEvaluationContext uses its default type converter, or it is configured with a TypeConverter or ConversionService that includes the default converters of DefaultConversionService — for example, a DefaultConversionService or a ConversionService populated via DefaultConversionService.addDefaultConverters().

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework » spring-expression
<= 5.2.26.RELEASE>= 5.3.0, <= 5.3.50>= 6.0.0, <= 6.0.32>= 6.1.0, <= 6.1.29>= 6.2.0, <= 6.2.20>= 7.0.0, < 7.0.11
7.0.11

Blast radius

1affected artifacts
414affected versions
103,974dependent artifacts (est.)
4,346,219dependent versions

86% of the dependent artifacts (90,215) still pull an affected version in their latest release.

DepthDependent versions
Direct
137,561
2 hops
619,953
3 hops
1,747,214
4 hops
1,190,468
5 hops
460,501
6 hops
190,522

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.