CVE-2026-41845 Spring Framework Cross-site Scripting via JavaScriptUtils

High 7.1 Published Updated

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.

PackageAffectedFixed in
org.springframework:spring-webmvc MavenAll versions to 5.3.39None
org.springframework:spring-webmvc MavenAll versions to 5.3.39None
org.springframework:spring-webmvc MavenFrom 6.1.0 to 6.1.21None
org.springframework:spring-webmvc MavenFrom 6.1.0 to 6.1.21None
org.springframework:spring-webmvc MavenFrom 6.2.06.2.19
org.springframework:spring-webmvc MavenFrom 6.2.06.2.19
2 more packages
org.springframework:spring-webmvc MavenFrom 7.0.07.0.8
org.springframework:spring-webmvc MavenFrom 7.0.07.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.

All Vmware Spring Framework vulnerabilities

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.

Is CVE-2026-41845 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free