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)
| Artifact | Affected versions | Fixed 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
86% of the dependent artifacts (90,215) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-test21,021 usages
- org.springframework.boot » spring-boot-starter-web19,088 usages
- org.springframework » spring-context18,673 usages
- org.springframework.boot » spring-boot-autoconfigure15,725 usages
- org.springframework.boot » spring-boot-starter12,905 usages
- org.springframework » spring-test12,237 usages
- org.springframework » spring-web12,092 usages
- org.springframework.boot » spring-boot-maven-plugin8,666 usages
- org.springframework » spring-webmvc7,543 usages
- org.springframework.boot » spring-boot-starter-actuator6,569 usages
- org.springframework » spring-jdbc5,613 usages
- org.springframework.boot » spring-boot5,111 usages
- org.springframework » spring-tx5,098 usages
- org.springframework.boot » spring-boot-starter-validation4,733 usages
- org.springframework.boot » spring-boot-starter-aop4,666 usages
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.
