Intel

AIKIDO-2026-11157

spring-webmvc is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS)CVE-2026-41846 Published Yesterday

59

Medium Risk

This Affects:

JAVAspring-webmvc
5.3.0 - 5.3.48
Fixed in 5.3.49
6.1.0 - 6.1.27
Fixed in 6.1.28
6.2.0 - 6.2.18
Fixed in 6.2.19
7.0.0 - 7.0.7
Fixed in 7.0.7.1
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and if the application uses the JSP form:*> tags with user-supplied values for the cssClass, cssErrorClass, or cssStyle attributes.

Background info

spring-webmvc is vulnerable to Cross-site Scripting (XSS) in versions 7.0.0 - 7.0.7, 6.2.0 - 6.2.18, 6.1.0 - 6.1.27 and 5.3.0 - 5.3.48.

How to fix this

Upgrade the org.springframework:spring-webmvc library to the patch version.