CVE-2026-59281: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Spring Spring Framework
Description
A reflected cross-site scripting (XSS) vulnerability exists in Spring Framework's MVC and WebFlux applications when rendering field errors with HTML escaping enabled using certain Errors accessors. This allows injection of arbitrary HTML or JavaScript code. The vulnerability affects multiple versions of Spring Framework from 5.2.25.RELEASE and earlier up to 7.0.8.
CVSS v3.1
Score 6.1medium
Affected software
Spring
Spring Framework
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
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. This results in a reflected cross-site scripting (XSS) vulnerability. Affected versions include Spring Framework 5.2.25.RELEASE and earlier, and all versions up to 7.0.8 in the 5.x, 6.0.x, 6.1.x, 6.2.x, and 7.0.x branches.
Potential Impact
An attacker can inject arbitrary HTML or JavaScript code into web pages rendered by vulnerable Spring Framework applications, potentially leading to reflected XSS attacks. This can result in limited confidentiality and integrity impacts, such as theft of user session data or manipulation of web content in the context of the victim's browser. There is no indication of availability impact or known exploitation in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Users should monitor Spring Framework advisories for updates addressing this vulnerability. Until a fix is available, avoid rendering field errors using the no-argument Errors.getFieldErrors() or Errors.getFieldError() accessors with HTML escaping enabled, or implement additional input validation and output encoding as a temporary mitigation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-07-04T18:13:26.297Z
- State
- PUBLISHED
Threat ID: 6a909cf5acd9273b49b2d018
Added to database: 08/27/2026, 20:24:21 UTC
Last enriched: 09/10/2026, 04:23:49 UTC
Last updated: 10/11/2026, 18:48:20 UTC
Views: 35
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.