CVE-2026-41846: Spring Framework Cross-site Scripting via JSP Form Tags
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.
Published Jun 9, 2026 · Updated Jul 30, 2026
Affected packages
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 7.0.0, <= 7.0.7
- Fixed in
- 7.0.8
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 6.2.0, <= 6.2.18
- Fixed in
- 6.2.19
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 6.1.0, <= 6.1.21
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- <= 5.3.39
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-41846
- https://spring.io/security/cve-2026-41846
- https://github.com/spring-projects/spring-framework/commit/1829b42b9c45e780c268dd17863d9198d62154d3
- https://github.com/spring-projects/spring-framework/commit/e8f10244e3859e8bb5b6be3823c9bbea2c130573
- https://github.com/spring-projects/spring-framework/releases/tag/v6.2.19
- https://github.com/spring-projects/spring-framework/releases/tag/v7.0.8
- https://github.com/advisories/GHSA-957g-f97v-vppc
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-47884
Spring Framework Improper Path Limitation in XsltView
critical9.8No fixAug 27, 2026CVE-2026-47890
Spring Framework Server Sent Event stream corruption while rendering fragments
critical9.8No fixAug 27, 2026CVE-2026-41841
Spring Framework Information Disclosure via Static Resource Cache in Spring MVC and WebFlux
medium5.9No fixJun 9, 2026CVE-2026-41842
Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux
high7.5No fixJun 9, 2026CVE-2026-41843
Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux
medium5.9No fixJun 9, 2026CVE-2026-41844
Spring Framework Open Redirect in Spring MVC and WebFlux
medium4.2No fixJun 9, 2026
