Medium severity5.9NVD Advisory· Published Jun 9, 2026· Updated Jun 11, 2026
CVE-2026-41846
CVE-2026-41846
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.springframework:spring-webmvcMaven | >= 7.0.0, < 7.0.8 | 7.0.8 |
org.springframework:spring-webmvcMaven | >= 6.2.0, < 6.2.19 | 6.2.19 |
org.springframework:spring-webmvcMaven | >= 6.1.0, <= 6.1.21 | — |
org.springframework:spring-webmvcMaven | <= 5.3.39 | — |
Affected products
8- Range: 5.3.0-5.3.48, 6.1.0-6.1.27, 6.2.0-6.2.18, 7.0.0-7.0.7
- osv-coords6 versionspkg:apk/chainguard/apache-activemq-6.2pkg:apk/chainguard/apache-activemq-fips-6.2pkg:apk/chainguard/apache-nifi-registrypkg:apk/chainguard/camunda-8.9pkg:apk/chainguard/camunda-zeebe-8.9pkg:apk/wolfi/apache-nifi-registry
< 6.2.8-r2+ 5 more
- (no CPE)range: < 6.2.8-r2
- (no CPE)range: < 6.2.8-r4
- (no CPE)range: < 2.10.0-r4
- (no CPE)range: < 8.9.13-r3
- (no CPE)range: < 8.9.13-r2
- (no CPE)range: < 2.10.0-r4
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-957g-f97v-vppcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-41846ghsaADVISORY
- spring.io/security/cve-2026-41846nvdVendor AdvisoryWEB
- github.com/spring-projects/spring-framework/commit/1829b42b9c45e780c268dd17863d9198d62154d3ghsaWEB
- github.com/spring-projects/spring-framework/commit/e8f10244e3859e8bb5b6be3823c9bbea2c130573ghsaWEB
- github.com/spring-projects/spring-framework/releases/tag/v6.2.19ghsaWEB
- github.com/spring-projects/spring-framework/releases/tag/v7.0.8ghsaWEB
News mentions
0No linked articles in our index yet.