MEDIUM 6.1 Maven

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

Ready to move

Start Securing

Free, no credit card | First findings in minutes