CVE-2026-59281 Spring Framework Cross-site Scripting via EscapedErrors

Medium 6.1 Published Updated

Attackers can inject arbitrary HTML or JavaScript via field errors in Spring MVC/WebFlux apps when HTML escaping is enabled but specific accessors are used.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-59281?

CVE-2026-59281 is a medium-severity cross-site scripting vulnerability in Vmware Spring Framework, published on 27 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Spring MVC and WebFlux applications that obtain a data-binding Errors instance with HTML escaping enabled and then render field errors using the no-argument Errors.getFieldErrors() or Errors.getFieldError() accessors are vulnerable to arbitrary HTML/JavaScript code injection, potentially resulting in a reflected cross-site scripting (XSS) vulnerability. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49 Spring Framework 5.2.25.RELEASE and earlier

Weakness: CWE-79

Which versions are affected by CVE-2026-59281?

It affects 1 product.

Products include Vmware Spring Framework.

How do I fix CVE-2026-59281?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-59281 being exploited?

There is no known exploitation of CVE-2026-59281 in the wild and no public exploit code.

All Vmware Spring Framework vulnerabilities

Sources

Also known as CLEANSTART-2026-HB81544, CLEANSTART-2026-IL27901, CLEANSTART-2026-RS34156, CLEANSTART-2026-SC51338, DEBIAN-CVE-2026-59281, GHSA-549f-4rpc-3rw9 and 1 more.

Is CVE-2026-59281 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free