Intel

AIKIDO-2026-11157

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

CVE-2026-41846Published Jun 11, 2026
June 11, 2026

59

CVE Score

Medium

Cross-site Scripting (XSS)

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.

How do I fix this?

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

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.

Versions

6.2.0 - 6.2.18

Fixed in 6.2.19

5.3.0 - 7.0.7

Fixed in 7.0.8

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.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea