CVE-2026-41846: CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) in Spring Spring Framework
A cross-site scripting (XSS) vulnerability exists in Spring Framework's MVC component where user-supplied values in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags are not properly neutralized. This allows injection of arbitrary HTML or JavaScript code. The vulnerability affects multiple versions of Spring Framework including 5.3.0 through 5.3.48, 6.1.0 through 6.1.27, 6.2.0 through 6.2.18, and 7.0.0 through 7.0.7. The CVSS score is 5.9, indicating a medium severity level. No official patch or remediation guidance is currently provided by the vendor.
AI Analysis
Technical Summary
Spring MVC applications that accept user input in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags do not properly neutralize this input during web page generation, leading to a cross-site scripting (CWE-79) vulnerability. This flaw allows attackers to inject arbitrary HTML or JavaScript code, potentially compromising the confidentiality of user data. The vulnerability affects Spring Framework versions 5.3.0 to 5.3.48, 6.1.0 to 6.1.27, 6.2.0 to 6.2.18, and 7.0.0 to 7.0.7. The CVSS 3.1 base score is 5.9, with network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, high confidentiality impact, low integrity impact, and no availability impact. No known exploits in the wild have been reported. The vendor has not yet provided an official fix or remediation level.
Potential Impact
Successful exploitation can lead to injection of arbitrary HTML or JavaScript code in affected Spring MVC applications, potentially resulting in disclosure of sensitive information or session hijacking. The confidentiality impact is high, while integrity impact is low and availability is not affected. Exploitation requires user interaction and has high attack complexity, limiting ease of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, developers should avoid accepting untrusted input in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags or implement manual input validation and output encoding to mitigate injection risks.
CVE-2026-41846: CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) in Spring Spring Framework
Description
A cross-site scripting (XSS) vulnerability exists in Spring Framework's MVC component where user-supplied values in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags are not properly neutralized. This allows injection of arbitrary HTML or JavaScript code. The vulnerability affects multiple versions of Spring Framework including 5.3.0 through 5.3.48, 6.1.0 through 6.1.27, 6.2.0 through 6.2.18, and 7.0.0 through 7.0.7. The CVSS score is 5.9, indicating a medium severity level. No official patch or remediation guidance is currently provided by the vendor.
CVSS v3.1
Score 5.9medium
Affected software
pkg:maven/org.springframework/spring-frameworkRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Spring MVC applications that accept user input in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags do not properly neutralize this input during web page generation, leading to a cross-site scripting (CWE-79) vulnerability. This flaw allows attackers to inject arbitrary HTML or JavaScript code, potentially compromising the confidentiality of user data. The vulnerability affects Spring Framework versions 5.3.0 to 5.3.48, 6.1.0 to 6.1.27, 6.2.0 to 6.2.18, and 7.0.0 to 7.0.7. The CVSS 3.1 base score is 5.9, with network attack vector, high attack complexity, no privileges required, user interaction required, unchanged scope, high confidentiality impact, low integrity impact, and no availability impact. No known exploits in the wild have been reported. The vendor has not yet provided an official fix or remediation level.
Potential Impact
Successful exploitation can lead to injection of arbitrary HTML or JavaScript code in affected Spring MVC applications, potentially resulting in disclosure of sensitive information or session hijacking. The confidentiality impact is high, while integrity impact is low and availability is not affected. Exploitation requires user interaction and has high attack complexity, limiting ease of exploitation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, developers should avoid accepting untrusted input in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags or implement manual input validation and output encoding to mitigate injection risks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-04-22T06:22:08.200Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a279b32e29bf47b503575c4
Added to database: 06/09/2026, 04:48:50 UTC
Last enriched: 07/31/2026, 00:13:17 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 65
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.