MODERATE 5.9

CVE-2026-41846

Spring Framework Cross-site Scripting via JSP Form Tags

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework » spring-webmvc
<= 5.3.39>= 6.1.0, <= 6.1.21>= 6.2.0, < 6.2.19>= 7.0.0, < 7.0.8
6.2.19, 7.0.8

Blast radius

1affected artifacts
441affected versions
40,532dependent artifacts (est.)
1,566,132dependent versions

71% of the dependent artifacts (29,106) still pull an affected version in their latest release.

DepthDependent versions
Direct
202,883
2 hops
428,574
3 hops
488,934
4 hops
266,196
5 hops
123,839
6 hops
55,706

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.