MediumGHSA-549f-4rpc-3rw9CVE-2026-59281

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
Update to the fixed version for your release line, for example: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

We confirm your address first. See our privacy policy.

Which org.springframework:spring-web does your project really install?

Drop your pom.xml hereWe find the exact org.springframework:spring-web version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

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
All 14 advisories for org.springframework:spring-web

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.