Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Spring app using javaScriptEscape()
-
DeliveryCraft payload that escapes JS string context
-
ExploitDeliver via reflected URL or stored input
-
ExecutionVictim loads page rendering payload
-
PersistBrowser executes injected JavaScript
-
ImpactSteal session tokens or perform actions as user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target Spring application actually renders attacker-controlled input into a JavaScript context using JavaScriptUtils.javaScriptEscape() (directly in code or via JSP tags whose javaScriptEscape attribute delegates to it) - applications that escape with OWASP Java Encoder, Thymeleaf's th:inline='javascript' (when used correctly), or JSON serialization are not exposed through this code path. A victim must interact with attacker-influenced content (UI:R), typically by visiting a URL with a malicious parameter or viewing stored data containing the payload; no authentication is needed to deliver the payload (PR:N). Exploitability is further limited by browser-side mitigations the target site may have, such as a strict Content-Security-Policy without unsafe-inline, which can neutralize injected scripts even if the escape gap is triggered. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N (7.1 High) indicates network-reachable, low-complexity, unauthenticated exploitation that nonetheless requires a user to interact with attacker-influenced content - typical of reflected/stored XSS. EPSS data was not supplied, the vulnerability is not listed in CISA KEV, and no public PoC has been identified at time of analysis, so this is a real but not emergency-grade priority compared with actively exploited Spring issues. The C:H rating reflects the severity of session/credential theft in browser-trust contexts rather than direct server compromise; impact is heavily dependent on whether the affected application actually uses javaScriptEscape() for untrusted data, which limits real-world reach to a subset of deployments. Key unknowns: vendor advisory text (spring.io/security/cve-2026-41845 was not retrieved here), exact escape gap, and whether tag-library users are also affected - these should be verified directly with VMware/Spring. |
| Exploit ScenarioDerived | An attacker crafts a URL or submits stored content (e.g., a profile field, search term, or comment) containing a payload designed to break out of the partial escaping performed by JavaScriptUtils.javaScriptEscape(); when a victim later loads a page that renders that data inside a <script> block or inline event handler using the vulnerable helper, the browser executes the injected JavaScript in the victim's session context, enabling cookie theft, token exfiltration, or actions on behalf of the user. Exploitation is unauthenticated to deliver but requires user interaction (UI:R) such as visiting the crafted page; no public PoC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Spring gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Lifecycle Timeline
3DescriptionNVD
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.
Blast Radius
ecosystem impact- 23 maven packages depend on org.springframework:spring-webmvc (14 direct, 9 indirect)
Ecosystem-wide dependent count for version 7.0.0.
Articles & Coverage 1
Executive ViewAI
Spring Framework versions 5.3.0-7.0.7 contain an XSS vulnerability in JavaScript encoding that attackers can exploit to inject malicious scripts into user browsers and compromise sessions or steal credentials. Organizations using affected versions must immediately identify systems and implement interim security controls, as no vendor patch is available. This represents a material risk to any web applications relying on vulnerable Spring Framework releases.
No vendor-released patch identified at time of analysis. Implement interim mitigations: (1) Deploy Web Application Firewall rules targeting JavaScript injection payloads; (2) Enforce Content-Security-Policy headers with restrictive script-src directives; (3) Conduct source code audit to identify all JavaScriptUtils.javaScriptEscape() usage and apply alternative validated encoding; (4) Implement additional input validation and output encoding layers beyond framework utilities; (5) Deploy enhanced session management controls including forced re-authentication triggers; (6) Enable security monitoring for anomalous JavaScript activity and XSS-related indicators. Monitor Spring Framework project and vendor advisories for availability of patched versions.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Related Vulnerabilities in Spring Framework DoS, Injection, and Auth Vulnerabilities
View all 18Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
EUVD-2026-35333
GHSA-3chg-m5w7-qfv5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB