CVE-2026-41845 Spring Framework Cross-site Scripting via JavaScriptUtils
Attackers can inject JavaScript via improper escaping in Spring Framework's JavaScriptUtils, leading to cross-site scripting attacks against web applications.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-41845?
CVE-2026-41845 is a high-severity cross-site scripting vulnerability in Vmware Spring Framework, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-41845?
8 open source packages ship an affected version, including org.springframework:spring-webmvc. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework:spring-webmvc Maven | All versions to 5.3.39 | None |
org.springframework:spring-webmvc Maven | All versions to 5.3.39 | None |
org.springframework:spring-webmvc Maven | From 6.1.0 to 6.1.21 | None |
org.springframework:spring-webmvc Maven | From 6.1.0 to 6.1.21 | None |
org.springframework:spring-webmvc Maven | From 6.2.0 | 6.2.19 |
org.springframework:spring-webmvc Maven | From 6.2.0 | 6.2.19 |
2 more packages
org.springframework:spring-webmvc Maven | From 7.0.0 | 7.0.8 |
org.springframework:spring-webmvc Maven | From 7.0.0 | 7.0.8 |
Products include Vmware Spring Framework.
How do I fix CVE-2026-41845?
Upgrade org.springframework:spring-webmvc to a fixed version for your release line: 6.2.19 or 7.0.8.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-41845 being exploited?
There is no known exploitation of CVE-2026-41845 in the wild and no public exploit code.
Other vulnerabilities in Vmware Spring Framework
- CVE-2026-47884 Spring Framework Improper Path Limitation in XsltView
- CVE-2026-47890 Spring Framework Server Sent Event stream corruption while rendering fragments
- CVE-2026-47891 Spring Framework maxInMemorySize Bypassed in Jaxb2Decoder
- CVE-2026-47892 Spring Framework Header Predicate Bypass in WebFlux Functional Endpoints
- CVE-2026-59313 Server Sent Event stream corruption in Spring MVC functional web framework
Sources
Also known as CLEANSTART-2026-UA33426, CLSA-2026-1782781165, CLSA-2026-1785921265, DEBIAN-CVE-2026-41845, ECHO-47e3-731b-02f1, GHSA-3chg-m5w7-qfv5 and 12 more.