Cross-site scripting in Spring Framework - CVE-2026-59281
Published: August 28, 2026
Vulnerability details
The vulnerability allows a remote attacker to inject arbitrary html/javascript code.
The vulnerability exists due to cross-site scripting in Errors.getFieldErrors() and Errors.getFieldError() accessors when rendering field errors from a data-binding Errors instance with HTML escaping enabled. A remote attacker can supply crafted input that is later rendered in field errors to inject arbitrary html/javascript code.
The issue can lead to reflected cross-site scripting in Spring MVC and WebFlux applications.
Affected software
Library Support for Spring
How to mitigate CVE-2026-59281
Library Support for Spring - update to 3.5.19