CVE-2026-41846: CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) in Spring Spring Framework
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.
AI Analysis
Technical Summary
This vulnerability involves improper neutralization of input during web page generation (CWE-79) in the Spring Framework's handling of JSP form tag attributes cssClass, cssErrorClass, and cssStyle. User-supplied values in these attributes are not properly sanitized, enabling injection of arbitrary HTML or JavaScript code, which can result in cross-site scripting (XSS). The affected versions span multiple major releases of Spring Framework, specifically 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 vulnerability requires user interaction (UI:R) and has a high impact on confidentiality (C:H) but low impact on integrity (I:L) and no impact on availability (A:N). No official fix or patch is currently documented in the vendor advisory or CVE data.
Potential Impact
Successful exploitation allows an attacker to inject and execute arbitrary HTML or JavaScript code in the context of the vulnerable web application. This can lead to disclosure of sensitive information accessible to the victim's browser, such as session tokens or other confidential data. The vulnerability does not impact system integrity or availability directly. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or remediation level is provided, users should monitor Spring Framework advisories for updates. Until a patch is available, avoid accepting untrusted user input in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags or implement custom 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
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.
CVSS v3.1
Score 5.9medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves improper neutralization of input during web page generation (CWE-79) in the Spring Framework's handling of JSP form tag attributes cssClass, cssErrorClass, and cssStyle. User-supplied values in these attributes are not properly sanitized, enabling injection of arbitrary HTML or JavaScript code, which can result in cross-site scripting (XSS). The affected versions span multiple major releases of Spring Framework, specifically 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 vulnerability requires user interaction (UI:R) and has a high impact on confidentiality (C:H) but low impact on integrity (I:L) and no impact on availability (A:N). No official fix or patch is currently documented in the vendor advisory or CVE data.
Potential Impact
Successful exploitation allows an attacker to inject and execute arbitrary HTML or JavaScript code in the context of the vulnerable web application. This can lead to disclosure of sensitive information accessible to the victim's browser, such as session tokens or other confidential data. The vulnerability does not impact system integrity or availability directly. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or remediation level is provided, users should monitor Spring Framework advisories for updates. Until a patch is available, avoid accepting untrusted user input in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags or implement custom 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: 6/9/2026, 4:48:50 AM
Last enriched: 6/9/2026, 5:20:05 AM
Last updated: 6/9/2026, 12:18:43 PM
Views: 5
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.