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.
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 |
{
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-03T21:36:06Z",
"nvd_published_at": "2026-08-27T20:17:54Z",
"severity": "MODERATE"
}