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.
{
"cna_assigner": "vmware",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40986.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.0.1"
},
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.1.1"
},
{
"introduced": "2.5.0"
},
{
"fixed": "2.5.2"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.1"
},
{
"introduced": "2.5.0"
},
{
"fixed": "2.5.1"
}
],
"source": "DESCRIPTION"
}
]
}