All reports
Medium

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

Affected versions

Affected versions
>= 3.0.0, <= 3.0.1
Fixed version
3.0.2
Affected versions
<= 2.5.1
Fixed version
Not reported
Affected versions
= 4.0.0
Fixed version
4.0.1

Exploitation

CVE-2026-40986

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-18

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.

Links