CVE-2026-59281: Spring Framework Cross-site Scripting via EscapedErrors
(updated )
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
References
- github.com/advisories/GHSA-549f-4rpc-3rw9
- github.com/spring-projects/spring-framework/commit/8cb1151375d2e22e14f3406e05f99fc333a618f7
- github.com/spring-projects/spring-framework/commit/ac0f8be0d821d0a51f02b4ef504755ff35ccd464
- github.com/spring-projects/spring-framework/issues/37055
- github.com/spring-projects/spring-framework/releases/tag/v7.0.9
- nvd.nist.gov/vuln/detail/CVE-2026-59281
- spring.io/security/cve-2026-59281
Code Behaviors & Features
Detect and mitigate CVE-2026-59281 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →