Spring Framework Cross-site Scripting via JSP Form Tags
Published 9 Jun 2026 · Updated 10 Sept 2026
Is your project on an affected org.springframework:spring-webmvc?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=7.0.0 <7.0.8
- Fixed in
- 7.0.8
mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=7.0.8 -DforceVersion=true- Affected
- >=6.2.0 <6.2.19
- Fixed in
- 6.2.19
mvn versions:use-dep-version -Dincludes=org.springframework:spring-webmvc -DdepVersion=6.2.19 -DforceVersion=true- Affected
- >=6.1.0 <=6.1.21
- Fixed in
- No fix released
- Affected
- <=5.3.39
- Fixed in
- No fix released
Details
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.
Is GHSA-957g-f97v-vppc in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.springframework:spring-webmvc, and gives you the command that fixes it.
More advisories for org.springframework:spring-webmvc
- CriticalCVE-2026-47890Spring Framework Server Sent Event stream corruption while rendering fragments · 27 Aug 2026
- CriticalCVE-2026-47884Spring Framework Improper Path Limitation in XsltView · 27 Aug 2026
- MediumCVE-2026-41853Spring Framework Multipart Request Smuggling in Spring MVC and WebFlux · 9 Jun 2026
- HighCVE-2026-41845Spring Framework Cross-site Scripting via JavaScriptUtils · 9 Jun 2026
- HighCVE-2026-41842Spring Framework Denial of Service via Versioned Resources in Spring MVC and WebFlux · 9 Jun 2026
- MediumCVE-2026-41843Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux · 9 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-41846
- Linkgithub.com/spring-projects/spring-framework/commit/1829b42b9c45e780c268dd17863d9198d62154d3
- Linkgithub.com/spring-projects/spring-framework/commit/e8f10244e3859e8bb5b6be3823c9bbea2c130573
- Packagegithub.com/spring-projects/spring-framework
- Linkgithub.com/spring-projects/spring-framework/releases/tag/v6.2.19
- Linkgithub.com/spring-projects/spring-framework/releases/tag/v7.0.8
- Linkspring.io/security/cve-2026-41846
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.