CVE-2026-40986: Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML
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.
Published Jun 11, 2026 · Updated Aug 18, 2026
Affected packages
org.springframework.webflow:spring-webflow
- Ecosystem
- Maven
- Affected
- = 4.0.0
- Fixed in
- 4.0.1
- Check
mvn dependency:tree -Dincludes=org.springframework.webflow:spring-webflow
org.springframework.webflow:spring-webflow
- Ecosystem
- Maven
- Affected
- >= 3.0.0, <= 3.0.1
- Fixed in
- 3.0.2
- Check
mvn dependency:tree -Dincludes=org.springframework.webflow:spring-webflow
org.springframework.webflow:spring-webflow
- Ecosystem
- Maven
- Affected
- <= 2.5.1
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.webflow:spring-webflow
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
