MODERATE 4.8

CVE-2026-40986

Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.webflow » spring-webflow
<= 2.5.1>= 3.0.0, < 3.0.2>= 4.0.0, < 4.0.1
3.0.2, 4.0.1

Blast radius

1affected artifacts
43affected versions
1,093dependent artifacts (est.)
59,718dependent versions

39% of the dependent artifacts (430) still pull an affected version in their latest release.

DepthDependent versions
Direct
45,418
2 hops
5,622
3 hops
6,147
4 hops
1,556
5 hops
786
6 hops
189

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.