Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-web
  4. ›
  5. CVE-2026-59281

CVE-2026-59281: Spring Framework Cross-site Scripting via EscapedErrors

August 27, 2026 (updated December 3, 2026)

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 →

Affected versions

All versions up to 5.2.25, all versions starting from 5.3.0 up to 5.3.39, all versions starting from 6.0.0 up to 6.0.23, all versions starting from 6.1.0 up to 6.1.21, all versions starting from 6.2.0 up to 6.2.19, all versions starting from 7.0.0-M1 before 7.0.9

Fixed versions

  • 7.0.9

Solution

Upgrade to version 7.0.9 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

maven/org.springframework/spring-web/CVE-2026-59281.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 04 Dec 2026 00:17:09 +0000.