Skip to main content

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in org.springframework:spring-web

CVE-2026-59281

  • org.springframework:spring-web
Severity Medium
Score 6.1/10

Summary

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. This issue affects Spring Framework versions through 5.2.25.RELEASE, 5.3.0 through 5.3.49, 6.0.0 through 6.0.30, 6.1.0 through 6.1.28, 6.2.0 through 6.2.19 and 7.0.0 through 7.0.8.

  • LOW
  • NETWORK
  • LOW
  • CHANGED
  • REQUIRED
  • NONE
  • LOW
  • NONE

CWE-79 - Cross Site Scripting

Cross-Site Scripting, commonly referred to as XSS, is the most dominant class of vulnerabilities. It allows an attacker to inject malicious code into a pregnable web application and victimize its users. The exploitation of such a weakness can cause severe issues such as account takeover, and sensitive data exfiltration. Because of the prevalence of XSS vulnerabilities and their high rate of exploitation, it has remained in the OWASP top 10 vulnerabilities for years.

Advisory Timeline

  • Published