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)
| Artifact | Affected versions | Fixed 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
71% of the dependent artifacts (29,106) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework » spring-test12,234 usages
- org.springframework » spring-orm3,194 usages
- io.springfox » springfox-swagger21,926 usages
- org.wso2.carbon » org.wso2.carbon.core1,598 usages
- io.springfox » springfox-swagger-ui1,418 usages
- org.springframework.boot » spring-boot-starter-websocket1,319 usages
- net.sf.ehcache » ehcache1,234 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- org.wso2.carbon » org.wso2.carbon.utils1,179 usages
- org.springframework.boot » spring-boot-starter-thymeleaf1,158 usages
- org.springframework.data » spring-data-mongodb1,154 usages
- org.springframework » spring1,074 usages
- org.springdoc » springdoc-openapi-starter-webmvc-ui1,040 usages
- org.wso2.carbon » org.wso2.carbon.ui803 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-41846
- Webhttps://github.com/spring-projects/spring-framework/commit/1829b42b9c45e780c268dd17863d9198d62154d3
- Webhttps://github.com/spring-projects/spring-framework/commit/e8f10244e3859e8bb5b6be3823c9bbea2c130573
- Packagehttps://github.com/spring-projects/spring-framework
- Webhttps://github.com/spring-projects/spring-framework/releases/tag/v6.2.19
- Webhttps://github.com/spring-projects/spring-framework/releases/tag/v7.0.8
- Webhttps://spring.io/security/cve-2026-41846
