Spring Framework Cross-site Scripting via EscapedErrors
Published 27 Aug 2026 · Updated 3 Dec 2026
Affected packages
- Affected
- >=7.0.0-M1 <7.0.9
- Fixed in
- 7.0.9
mvn versions:use-dep-version -Dincludes=org.springframework:spring-web -DdepVersion=7.0.9 -DforceVersion=true- Affected
- >=6.2.0 <=6.2.19
- Fixed in
- No fix released
- Affected
- >=6.1.0 <=6.1.21
- Fixed in
- No fix released
- Affected
- >=6.0.0 <=6.0.23
- Fixed in
- No fix released
- Affected
- >=5.3.0 <=5.3.39
- Fixed in
- No fix released
- Affected
- <=5.2.25.RELEASE
- Fixed in
- No fix released
Which org.springframework:spring-web does your project really install?
Works for private projects: the file is read in memory to run the scan and then dropped. Also reads build.gradle or gradle.lockfile.
Public repo?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Details
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
Is GHSA-549f-4rpc-3rw9 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring-web, and gives you the command that fixes it.
More advisories for org.springframework:spring-web
- MediumCVE-2026-41854Spring Framework Server-Side Request Forgery via UriComponentsBuilder · 9 Jun 2026
- MediumCVE-2025-41234Spring Framework vulnerable to a reflected file download (RFD) · 13 Jun 2025
- MediumCVE-2024-38820Spring Framework DataBinder Case Sensitive Match Exception · 18 Oct 2024
- MediumCVE-2024-38809Spring Framework DoS via conditional HTTP request · 24 Sept 2024
- HighCVE-2024-22262Spring Framework URL Parsing with Host Validation · 16 Apr 2024
- HighCVE-2024-22259Spring Framework URL Parsing with Host Validation Vulnerability · 16 Mar 2024
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-59281
- Linkgithub.com/spring-projects/spring-framework/issues/37055
- Linkgithub.com/spring-projects/spring-framework/commit/8cb1151375d2e22e14f3406e05f99fc333a618f7
- Linkgithub.com/spring-projects/spring-framework/commit/ac0f8be0d821d0a51f02b4ef504755ff35ccd464
- Packagegithub.com/spring-projects/spring-framework
- Linkgithub.com/spring-projects/spring-framework/releases/tag/v7.0.9
- Linkspring.io/security/cve-2026-59281
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.