CVE-2026-40986

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

State
Published
Severity
4.8 Medium
Published
Jun 11, 2026
Updated
Jun 23, 2026
Reserved
Apr 16, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.8 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:Nvmware

Weaknesses

  • CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)

Affected Products

ProductVersions
Spring Web FlowSpring
  • 4.0.0 to before 4.0.0.1Affected
  • 3.0.0 to before 3.0.1.1Affected
  • 2.5.0 to before 2.5.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.