CVE-2026-41845: CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) in Spring Spring Framework
Due to incorrect escaping, the use of JavaScriptUtils.javaScriptEscape() may lead to JavaScript code injection in the browser, 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
The vulnerability arises from incorrect escaping in the JavaScriptUtils.javaScriptEscape() function within the Spring Framework, which may allow JavaScript code injection in the browser. This improper neutralization of input during web page generation is classified under CWE-79 (Cross-site Scripting). Affected versions include Spring Framework 7.0.0 through 7.0.7, 6.2.0 through 6.2.18, 6.1.0 through 6.1.27, and 5.3.0 through 5.3.48. The CVSS 3.1 base score is 7.1, indicating a high severity with network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, high confidentiality impact, low integrity impact, and no availability impact.
Potential Impact
Successful exploitation could allow an attacker to inject malicious JavaScript code into users' browsers, potentially leading to the disclosure of sensitive information (high confidentiality impact). The integrity impact is low, and availability is not affected. This could compromise user trust and data confidentiality in applications using the affected Spring Framework versions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying workarounds such as avoiding the use of the vulnerable JavaScriptUtils.javaScriptEscape() method or implementing additional input validation and output encoding controls in their applications. Monitor official Spring Framework advisories for updates and patches.
CVE-2026-41845: CWE-79: Improper Neutralization of Input During Web Page Generation (Cross-site Scripting) in Spring Spring Framework
Description
Due to incorrect escaping, the use of JavaScriptUtils.javaScriptEscape() may lead to JavaScript code injection in the browser, 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 7.1high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from incorrect escaping in the JavaScriptUtils.javaScriptEscape() function within the Spring Framework, which may allow JavaScript code injection in the browser. This improper neutralization of input during web page generation is classified under CWE-79 (Cross-site Scripting). Affected versions include Spring Framework 7.0.0 through 7.0.7, 6.2.0 through 6.2.18, 6.1.0 through 6.1.27, and 5.3.0 through 5.3.48. The CVSS 3.1 base score is 7.1, indicating a high severity with network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, high confidentiality impact, low integrity impact, and no availability impact.
Potential Impact
Successful exploitation could allow an attacker to inject malicious JavaScript code into users' browsers, potentially leading to the disclosure of sensitive information (high confidentiality impact). The integrity impact is low, and availability is not affected. This could compromise user trust and data confidentiality in applications using the affected Spring Framework versions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying workarounds such as avoiding the use of the vulnerable JavaScriptUtils.javaScriptEscape() method or implementing additional input validation and output encoding controls in their applications. Monitor official Spring Framework advisories for updates and patches.
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: 6a279b32e29bf47b503575c1
Added to database: 6/9/2026, 4:48:50 AM
Last enriched: 6/9/2026, 5:04:18 AM
Last updated: 6/9/2026, 10:41:42 AM
Views: 3
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.