Intel

AIKIDO-2026-294135

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

Cross-Site Scripting (XSS)CVE-2026-59281 Published Aug 21, 2026

59

Medium Risk

This Affects:

JAVAspring-webmvc
0.0.1 - 7.0.8
Fixed in 7.0.9
Are you affected? Scan for Free

TL;DR

spring-web and spring-webflux EscapedErrors does not HTML-escape values returned by the no-argument getFieldErrors() and getFieldError() accessors. Applications that enable HTML escaping and then render those accessors can inject HTML or JavaScript into the page. That is reflected XSS. The patch escapes field errors from those accessors as well.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and HTML-escaped Errors field errors are rendered with the no-argument getFieldErrors() or getFieldError() accessors.

Background info

spring-webmvc is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 7.0.8.

How to fix this

Upgrade the org.springframework:spring-webmvc and/or the org.springframework:spring-webflux library to the patch version.