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

- Severity: Medium 4.8 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-06-11T05:03:26.458Z
- Modified: 2026-09-04T18:11:51.270Z
- Also known as: GHSA-hw5c-xm3c-v96w
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Web Flow: from 4.0.0 before 4.0.0.1; from 3.0.0 before 3.0.1.1; from 2.5.0 before 2.5.2
- org.springframework.webflow:spring-webflow (Maven): from 4.0.0 before 4.0.1; from 3.0.0 before 3.0.2; up to 2.5.1
- broadcom spring_web_flow: before 2.5.2; from 3.0.0 before 3.0.1.1; 4.0.0

## Every score

- vmware: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://spring.io/security/cve-2026-40986> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40986> (advisory)
- <https://github.com/spring-projects/spring-webflow> (package)

## Sources

- CVE List: [CVE-2026-40986](https://www.cve.org/CVERecord?id=CVE-2026-40986), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-hw5c-xm3c-v96w](https://github.com/advisories/GHSA-hw5c-xm3c-v96w), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-40986](https://nvd.nist.gov/vuln/detail/CVE-2026-40986), Public domain, modified 2026-09-04

---

Page: https://cve.day/CVE-2026-40986 · Whole record: https://cve.day/CVE-2026-40986.json · Rebuilt by cve.day 2026-11-25T22:59:24.408Z
