CVE-2026-59281

Spring Framework Cross-site Scripting via EscapedErrors

Published Aug 27, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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

Analysis

AI-generated

Technical impact

Spring MVC and WebFlux applications that retrieve a data‑binding Errors instance with HTML escaping enabled and render field errors using the no‑argument Errors.getFieldErrors() or Errors.getFieldError() methods can inject arbitrary HTML and JavaScript. This flaw arises from improper neutralization of user input during error rendering and is classified as CWE-79.

Affected Systems

Affected components are the Spring Framework. Versions 7.0.0 through 7.0.8, 6.2.0 through 6.2.19, 6.1.0 through 6.1.28, 6.0.0 through 6.0.30, 5.3.0 through 5.3.49, and 5.2.25.RELEASE and earlier are vulnerable.

Risk and Exploitability

Based on the description, the likely attack vector is crafted HTTP requests that trigger the error rendering path, allowing an attacker to embed malicious scripts that execute when a user views the error output. The CVSS score of 6.1 indicates a moderate severity reflected XSS. The EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalogue. Because the flaw is reflected and does not require authentication unless the target page is restricted, the potential impact could include confidentiality, integrity, and availability risks for users who view the affected pages, but this impact is inferred from the attack path and not explicitly stated in the description.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Spring Framework to a non‑vulnerable release: 7.0.9 or later, 6.2.20 or later, 6.1.29 or later, 6.0.31 or later, 5.3.50 or later, or 5.2.26.RELEASE or later.
  • If an immediate upgrade is not feasible, disable HTML escaping on the Errors instance or avoid using the no‑argument getFieldErrors/getFieldError methods for rendering; instead, use dedicated error handling that ensures proper escaping.
  • As a temporary mitigation, validate or sanitize the output returned by Errors.getFieldErrors() and Errors.getFieldError() before rendering, ensuring that any user input is escaped or stripped of script tags.
  • Implement a strict Content Security Policy that blocks inline scripts and untrusted sources to limit the impact of any remaining XSS payloads.

Generated by OpenCVE AI on August 29, 2026 at 00:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Framework
CPEs cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Framework
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

Type Values Removed Values Added
Weaknesses CWE-79
Type Values Removed Values Added
First Time appeared Spring
Spring spring Framework
Vendors & Products Spring
Spring spring Framework
Type Values Removed Values Added
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
Title Spring Framework Cross-site Scripting via EscapedErrors
References
Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Aug 28, 2026, 6:56 PM
Reserved
Jul 4, 2026, 6:13 PM
Status
Analyzed
Published
Aug 27, 2026, 8:17 PM
Modified
Sep 2, 2026, 4:58 PM