Spring Framework Cross-site Scripting via EscapedErrors
GHSA-549f-4rpc-3rw9 · CVE-2026-59281
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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
Fixed Versions
The following versions contain fixes for CVE-2026-59281:
| Spring Framework Version | Fixed Version | Availability |
|---|---|---|
| 7.0.0 – 7.0.8 | 7.0.9 | Open Source |
| 6.2.0 – 6.2.19 | 6.2.20 | Enterprise Support Only |
| 6.1.0 – 6.1.28 | 6.1.29 | Enterprise Support Only |
| 6.0.0 – 6.0.30 | 6.0.31 | Enterprise Support Only |
| 5.3.0 – 5.3.49 | 5.3.50 | Enterprise Support Only |
| 5.2.25.RELEASE and earlier | 5.2.26 | Enterprise Support Only |
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-59281
- WEB https://github.com/spring-projects/spring-framework/issues/37055
- WEB https://github.com/spring-projects/spring-framework/commit/8cb1151375d2e22e14f3406e05f99fc333a618f7
- WEB https://github.com/spring-projects/spring-framework/commit/ac0f8be0d821d0a51f02b4ef504755ff35ccd464
- PACKAGE https://github.com/spring-projects/spring-framework
- WEB https://github.com/spring-projects/spring-framework/releases/tag/v7.0.9
- WEB https://spring.io/security/cve-2026-59281
Ready to move
Start Securing
Free, no credit card | First findings in minutes