Intel

AIKIDO-2026-11157

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

Cross-site Scripting (XSS)CVE-2026-41846 Published Jun 11, 2026

59

Medium Risk

This Affects:

JAVAspring-webmvc
6.2.0 - 6.2.18
Fixed in 6.2.19
5.3.0 - 7.0.7
Fixed in 7.0.8
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 5.3.0 - 7.0.7 and 6.2.0 - 6.2.18.

How to fix this

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

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform