# CVE-2026-40986: Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-11 · Modified: 2026-06-23
- Aliases: GHSA-hw5c-xm3c-v96w
- Record: https://cvemate.com/vulnerability/CVE-2026-40986 · JSON: https://cvemate.com/vulnerability/CVE-2026-40986/json

## Description

```text
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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
- EPSS: 0.206%, percentile 11.255%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- broadcom spring\_web\_flow: \< 2.5.2 \| ≥ 3.0.0, \< 3.0.1.1 \| 4.0.0
- org.springframework.webflow spring-webflow (Maven): ≥ 4.0.0, \< 4.0.1 \| ≥ 3.0.0, \< 3.0.2 \| ≤ 2.5.1
- spring spring web flow: ≥ 4.0.0, \< 4.0.0.1 \| ≥ 3.0.0, \< 3.0.1.1 \| ≥ 2.5.0, \< 2.5.2

## References

- <https://spring.io/security/cve-2026-40986>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40986>
- <https://github.com/spring-projects/spring-webflow>

---

Data as of 2026-12-05T04:23:16.905Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
