Spring Framework 7.0.7 XSS via cssClass/cssErrorClass/cssStyle in JSP Form Tag
CVE-2026-41846 Published on June 9, 2026
Spring Framework Cross-site Scripting via JSP Form Tags
Spring MVC applications which accept user-supplied values in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags allow arbitrary HTML/JavaScript code injection, potentially resulting in a cross-site scripting (XSS) vulnerability.
Affected versions:
Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.
Vulnerability Analysis
CVE-2026-41846 is exploitable with network access, requires user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have a high impact on confidentiality, with no impact on integrity, and no impact on availability.
Weakness Type
What is a XSS Vulnerability?
The software 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.
CVE-2026-41846 has been classified to as a XSS vulnerability or weakness.
Affected Versions
Spring Framework:- Version 7.0.0 and below 7.0.8 is affected.
- Version 6.2.0 and below 6.2.19 is affected.
- Version 6.1.0 and below 6.1.28 is affected.
- Version 5.3.0 and below 5.3.49 is affected.