Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from NVD.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Lifecycle Timeline
4Blast Radius
ecosystem impact- 21 maven packages depend on org.springframework:spring-webmvc (13 direct, 8 indirect)
Ecosystem-wide dependent count for version 7.0.0.
DescriptionNVD
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.
Articles & Coverage 1
AnalysisAI
Cross-site scripting in Spring Framework versions 5.3.0-5.3.48, 6.1.0-6.1.27, 6.2.0-6.2.18, and 7.0.0-7.0.7 allows remote attackers to inject JavaScript into victim browsers when applications rely on JavaScriptUtils.javaScriptEscape() for output encoding. The flaw stems from incomplete escaping in this utility method, and successful exploitation requires user interaction (UI:R) such as visiting a crafted page. No public exploit has been identified at time of analysis and the issue is not in CISA KEV.
Technical ContextAI
Spring Framework is the foundational application framework underlying Spring Boot and a large share of enterprise Java web applications (CPE: cpe:2.3:a:spring:spring_framework). The vulnerable component is JavaScriptUtils.javaScriptEscape(), a helper widely used by developers and Spring's own tag libraries (e.g., the <spring:escapeBody javaScriptEscape='true'> JSP tag) to render untrusted strings inside JavaScript contexts. The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation): the escape routine fails to neutralize certain character sequences sufficient to break out of a JavaScript string literal or template context, allowing attacker-controlled data to be parsed as code by the browser.
RemediationAI
Upgrade Spring Framework to a fixed release on your branch - based on the affected ranges this means moving beyond 5.3.48, 6.1.27, 6.2.18, or 7.0.7 to the next vendor-released patched version as specified in the Spring advisory at https://spring.io/security/cve-2026-41845 (confirm the exact target version in that advisory, as published patched versions were not independently verified in the data provided). If immediate upgrade is not possible, audit code and templates for calls to JavaScriptUtils.javaScriptEscape() (and JSP tags that delegate to it such as <spring:escapeBody javaScriptEscape='true'> and the javaScriptEscape attribute on form/eval tags) and replace them with OWASP Java Encoder's Encode.forJavaScript() or context-appropriate JSON serialization, accepting the trade-off of code churn and the need to retest output rendering. As a defensive layer, deploy a strict Content-Security-Policy that forbids inline event handlers and uses nonces or hashes for inline scripts to blunt successful injection, recognising that strict CSP may break legacy inline scripts and require template refactoring.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-35333
GHSA-3chg-m5w7-qfv5