Vulnerabilities in pkg:maven/org.springframework/spring-web

PACKAGE
Advisory Identifier: GHSA-549f-4rpc-3rw9
Advisory Summary

CVE-2026-59281 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring framework cross-site scripting via escapederrors. Remediation is available by upgrading affected packages to version 7.0.9.

14 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springframework/spring-web

14 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.springframework/spring-web. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-549f-4rpc-3rw9 CVE-2026-59281 MODERATE Spring Framework Cross-site Scripting via EscapedErrors
GHSA-7m2p-62gw-p8qq CVE-2026-41854 MODERATE Spring Framework Server-Side Request Forgery via UriComponentsBuilder
GHSA-xjrf-8x4f-43h4 CVE-2013-6430 MODERATE Improper Neutralization of Input During Web Page Generation in Spring Framework
GHSA-6r3c-xf4w-jxjm CVE-2025-41234 MODERATE Spring Framework vulnerable to a reflected file download (RFD)
GHSA-4gc7-5j7h-4qph CVE-2024-38820 MODERATE Spring Framework DataBinder Case Sensitive Match Exception
GHSA-2rmj-mq67-h97g CVE-2024-38809 MODERATE Spring Framework DoS via conditional HTTP request
GHSA-ccgv-vj62-xf9h CVE-2024-22243 HIGH Spring Web vulnerable to Open Redirect or Server Side Request Forgery
GHSA-hgjh-9rj2-g67j CVE-2024-22259 HIGH Spring Framework URL Parsing with Host Validation Vulnerability
GHSA-2wrp-6fg6-hmc5 CVE-2024-22262 HIGH Spring Framework URL Parsing with Host Validation
GHSA-6v7w-535j-rq5m CVE-2015-3192 MODERATE Pivotal Spring Framework DoS Attack with XML Input
GHSA-9gcm-f4x3-8jpw CVE-2018-11039 MODERATE Spring Framework Cross Site Tracing (XST)
GHSA-g6hf-f9cq-q7w7 CVE-2013-6429 MODERATE Cross-Site Request Forgery in Spring Framework
GHSA-gfwj-fwqj-fp3v CVE-2021-22118 HIGH Improper Privilege Management in Spring Framework
GHSA-4wrc-f8pq-fpqp CVE-2016-1000027 CRITICAL Pivotal Spring Framework contains unsafe Java deserialization methods

CVE-2026-59281 at a Glance

CVE Identifier CVE-2026-59281
GHSA Identifier GHSA-549f-4rpc-3rw9
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-59281

To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.springframework:spring-web fixed: Latest secure release
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework:spring-web fixed: Latest secure release
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework:spring-web fixed: 7.0.9
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>7.0.9</version>
</dependency>
org.springframework:spring-web fixed: Latest secure release
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework:spring-web fixed: Latest secure release
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework:spring-web fixed: Latest secure release
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.springframework

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-59281, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.springframework

Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.9), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2026-59281 Affected Spring Framework Versions

6 component(s)
Fixed Versions:
7.0.9
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework:spring-web
Maven
≥ 5.3.0
≤ 5.3.39
org.springframework:spring-web
Maven
≤ 5.2.25.RELEASE
org.springframework:spring-web
Maven
≥ 7.0.0-M1
< 7.0.9
7.0.9
org.springframework:spring-web
Maven
≥ 6.2.0
≤ 6.2.19
org.springframework:spring-web
Maven
≥ 6.1.0
≤ 6.1.21
org.springframework:spring-web
Maven
≥ 6.0.0
≤ 6.0.23

References

Frequently Asked Questions

What is CVE-2026-59281?
CVE-2026-59281 is a security vulnerability in Spring Framework involving Spring Framework Cross-site Scripting via EscapedErrors under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Spring Framework versions are affected?
Affected versions include releases prior to 7.0.9 across affected packages: org.springframework:spring-web.
What version fixes CVE-2026-59281?
Upgrading to 7.0.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-web affected?
Yes, org.springframework:spring-web is affected in releases prior to Latest secure release, 7.0.9. Upgrade your dependency to Latest secure release, 7.0.9 or later.
What is the CVSS score of CVE-2026-59281?
CVE-2026-59281 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2026-59281?
CVE-2026-59281 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Maven dependencies for CVE-2026-59281?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-549f-4rpc-3rw9",
  "modified" : "2026-12-03T21:36:06Z",
  "published" : "2026-08-27T21:31:39Z",
  "aliases" : [ "CVE-2026-59281" ],
  "summary" : "Spring Framework Cross-site Scripting via EscapedErrors",
  "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.\n* Spring Framework 7.0.0 - 7.0.8\n* Spring Framework 6.2.0 - 6.2.19\n* Spring Framework 6.1.0 - 6.1.28\n* Spring Framework 6.0.0 - 6.0.30\n* Spring Framework 5.3.0 - 5.3.49\n* Spring Framework 5.2.25.RELEASE and earlier\n\n### Fixed Versions\n\nThe following versions contain fixes for CVE-2026-59281:\n\n| Spring Framework Version | Fixed Version | Availability |\n|---|---|---|\n| 7.0.0 – 7.0.8 | 7.0.9 | Open Source |\n| 6.2.0 – 6.2.19 | 6.2.20 | Enterprise Support Only |\n| 6.1.0 – 6.1.28 | 6.1.29 | Enterprise Support Only |\n| 6.0.0 – 6.0.30 | 6.0.31 | Enterprise Support Only |\n| 5.3.0 – 5.3.49 | 5.3.50 | Enterprise Support Only |\n| 5.2.25.RELEASE and earlier | 5.2.26 | Enterprise Support Only",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0-M1"
      }, {
        "fixed" : "7.0.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.2.0"
      }, {
        "last_affected" : "6.2.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.1.0"
      }, {
        "last_affected" : "6.1.21"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "last_affected" : "6.0.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.3.0"
      }, {
        "last_affected" : "5.3.39"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework:spring-web"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.2.25.RELEASE"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-59281"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/issues/37055"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/commit/8cb1151375d2e22e14f3406e05f99fc333a618f7"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/commit/ac0f8be0d821d0a51f02b4ef504755ff35ccd464"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spring-projects/spring-framework"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-framework/releases/tag/v7.0.9"
  }, {
    "type" : "WEB",
    "url" : "https://spring.io/security/cve-2026-59281"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-03T21:36:06Z",
    "nvd_published_at" : "2026-08-27T20:17:54Z"
  }
}