Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-41846 EUVD-2026-35334GHSA-957g-f97v-vppc

Spring Framework Cross-site Scripting via JSP Form Tags

Published Jun 9, 2026 · Updated Jun 27, 2026 · Assigned by vmware

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 products

VendorProductAffectedFixed
Spring Spring Framework 7.0.0 – < 7.0.7.1, 6.2.0 – < 6.2.18.1, 6.1.0 – < 6.1.28, 5.3.0 – < 5.3.49 7.0.7.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libspring-java No fix yet —
Debian 13 libspring-java No fix yet —
Debian 12 libspring-java No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi-registry 2.10.0-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-webmvc >= 7.0.0, < 7.0.8 7.0.8 GHSA-957g-f97v-vppc
Maven org.springframework:spring-webmvc >= 6.2.0, < 6.2.19 6.2.19 GHSA-957g-f97v-vppc
Maven org.springframework:spring-webmvc >= 6.1.0, <= 6.1.21 — GHSA-957g-f97v-vppc
Maven org.springframework:spring-webmvc <= 5.3.39 — GHSA-957g-f97v-vppc

Advisories 1

References