---
id: CVE-2026-40986
title: >-
  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 cont…
summary: >-
  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 cont…
severity: medium
cvss: 4.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N'
cwe:
  - CWE-79
vendor: broadcom
product: spring_web_flow
affected:
  - spring_web_flow < 2.5.2
  - 'spring_web_flow >= 3.0.0, < 3.0.1.1'
  - spring_web_flow = 4.0.0
patched:
  - spring_web_flow 3.0.1.1
published: '2026-06-11'
updated: '2026-09-04'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-40986'
references:
  - url: 'https://spring.io/security/cve-2026-40986'
    label: security@vmware.com
tags:
  - nvd
epss: 0.00254
epssPercentile: 0.15125
ingestedAt: '2026-09-05T13:39:55.097Z'
---

## Overview

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

- `spring_web_flow < 2.5.2`
- `spring_web_flow >= 3.0.0, < 3.0.1.1`
- `spring_web_flow = 4.0.0`

## Remediation

Upgrade past the affected range:

- `spring_web_flow 3.0.1.1`
