Vulnerability · Published Jun 11, 2026 · Assigned by vmware
CVE-2026-40986Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML
Medium 4.8
In plain English
A medium-severity cross-site scripting in Spring Web Flow from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Spring Web Flow's JavaScript RemotingHandler renders the body of an error response as HTML even when the response is not "text/html", which can result in a scripting attack in the user's browser if the error response from the server contains error details with input reflected from an attacker. Affected versions: Spring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.webflow:spring-webflow | 4.0.1 | GHSA-hw5c-xm3c-v96w |
| Maven | org.springframework.webflow:spring-webflow | 3.0.2 | GHSA-hw5c-xm3c-v96w |
| Maven | org.springframework.webflow:spring-webflow | no fix listed | GHSA-hw5c-xm3c-v96w |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Web Flow | 4.0.0 – before 4.0.0.13.0.0 – before 3.0.1.12.5.0 – before 2.5.2 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N