CVE-2026-40986

published 11 Jun 2026 · updated 23 Jun 2026

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

4.8MediumCVSS 4.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.5.2, 3.0.1.1 and 4.0.0.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Spring>=2.5.0 <2.5.2, >=3.0.0 <3.0.1.1, >=4.0.0 <4.0.0.12.5.2, 3.0.1.1, 4.0.0.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-40986 severity on Zeptric[![CVE-2026-40986](https://zeptric.io/badge/cve/CVE-2026-40986.svg)](https://zeptric.io/cve/CVE-2026-40986)