Vulnerability · Published Jun 9, 2026 · Assigned by vmware
CVE-2026-41846Spring Framework Cross-site Scripting via JSP Form Tags
Medium 5.9
In plain English
A medium-severity cross-site scripting in Spring Framework from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libspring-java | no fix listed | DEBIAN-CVE-2026-41846 |
| Debian:13 | libspring-java | no fix listed | DEBIAN-CVE-2026-41846 |
| Debian:14 | libspring-java | no fix listed | DEBIAN-CVE-2026-41846 |
| Maven | org.springframework:spring-webmvc | no fix listed | GHSA-957g-f97v-vppc |
| Maven | org.springframework:spring-webmvc | no fix listed | GHSA-957g-f97v-vppc |
| Maven | org.springframework:spring-webmvc | 7.0.8 | GHSA-957g-f97v-vppc |
| Maven | org.springframework:spring-webmvc | 6.2.19 | GHSA-957g-f97v-vppc |
| Ubuntu:25.10 | libspring-java | no fix listed | UBUNTU-CVE-2026-41846 |
| Ubuntu:26.04:LTS | libspring-java | no fix listed | UBUNTU-CVE-2026-41846 |
| Ubuntu:26.10 | libspring-java | no fix listed | UBUNTU-CVE-2026-41846 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Framework | 7.0.0 – before 7.0.7.16.2.0 – before 6.2.18.16.1.0 – before 6.1.285.3.0 – before 5.3.49 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N