CVE-2026-59281
Spring Framework Cross-site Scripting via EscapedErrors
Description
Spring MVC and WebFlux applications that obtain a data-binding Errors instance with HTML escaping enabled and then render field errors using the no-argument Errors.getFieldErrors() or Errors.getFieldError() accessors are vulnerable to arbitrary HTML/JavaScript code injection, potentially resulting in a reflected cross-site scripting (XSS) vulnerability. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49 Spring Framework 5.2.25.RELEASE and earlier
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring-web | <= 5.2.25.RELEASE>= 5.3.0, <= 5.3.49>= 6.0.0, <= 6.0.30>= 6.1.0, <= 6.1.28>= 6.2.0, <= 6.2.19>= 7.0.0, <= 7.0.8 | - |
Blast radius
76% of the dependent artifacts (47,520) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 300,323 |
| 2 hops | 842,891 |
| 3 hops | 929,520 |
| 4 hops | 486,667 |
| 5 hops | 182,453 |
| 6 hops | 75,474 |
Most used dependents
- org.springframework.boot » spring-boot-starter-web19,088 usages
- org.springframework » spring-test12,237 usages
- org.springframework » spring-webmvc7,543 usages
- org.springframework.boot » spring-boot-starter-security3,609 usages
- org.springframework.security » spring-security-core3,215 usages
- org.springframework » spring-orm3,196 usages
- org.apache.spark » spark-sql3,176 usages
- org.apache.spark » spark-core2,900 usages
- org.springframework.boot » spring-boot-starter-webflux2,764 usages
- org.springframework.security » spring-security-web2,136 usages
- org.springframework.security » spring-security-config2,066 usages
- io.springfox » springfox-swagger21,926 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.axis2.wso2 » axis21,425 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.
References
| Advisory | CVE record CVE-2026-59281 | github.com |
| Advisory | NVD CVE-2026-59281 | nvd.nist.gov |
| Web | security/cve-2026-59281 | spring.io |
