CVE-2026-41846 Spring Framework Cross-site Scripting via JSP Form Tags

Medium 5.9 Published Updated

Attackers can inject arbitrary HTML or JavaScript via JSP form tag attributes in Spring MVC applications, leading to cross-site scripting.

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-41846?

CVE-2026-41846 is a medium-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

Spring MVC applications which accept user-supplied values in the cssClass, cssErrorClass, or cssStyle attributes of JSP form tags allow arbitrary HTML/JavaScript code injection, 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-41846?

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-41846?

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-41846 being exploited?

There is no known exploitation of CVE-2026-41846 in the wild and no public exploit code.

All Vmware Spring Framework vulnerabilities

Sources

Also known as CLEANSTART-2026-MG54008, CLSA-2026-1787649292, CLSA-2026-1790081501, CLSA-2026-1790081906, DEBIAN-CVE-2026-41846, ECHO-b5c1-467a-a853 and 13 more.

Is CVE-2026-41846 in your software?

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

Check your SBOMs for free