{"id":"GHSA-hw5c-xm3c-v96w","summary":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","details":"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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","aliases":["CVE-2026-40986"],"modified":"2026-08-18T20:41:05.010025Z","published":"2026-06-11T09:31:55Z","database_specific":{"nvd_published_at":"2026-06-11T07:16:26Z","cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-08-18T20:14:20Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40986"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-webflow"},{"type":"WEB","url":"https://spring.io/security/cve-2026-40986"}],"affected":[{"package":{"name":"org.springframework.webflow:spring-webflow","ecosystem":"Maven","purl":"pkg:maven/org.springframework.webflow/spring-webflow"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hw5c-xm3c-v96w/GHSA-hw5c-xm3c-v96w.json"}},{"package":{"name":"org.springframework.webflow:spring-webflow","ecosystem":"Maven","purl":"pkg:maven/org.springframework.webflow/spring-webflow"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.2"}]}],"versions":["3.0.0","3.0.1"],"database_specific":{"last_known_affected_version_range":"\u003c= 3.0.1","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hw5c-xm3c-v96w/GHSA-hw5c-xm3c-v96w.json"}},{"package":{"name":"org.springframework.webflow:spring-webflow","ecosystem":"Maven","purl":"pkg:maven/org.springframework.webflow/spring-webflow"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.5.1"}]}],"versions":["2.0.6.RELEASE","2.0.7.RELEASE","2.0.8.RELEASE","2.0.9.RELEASE","2.1.0.RELEASE","2.1.1.RELEASE","2.2.0.RELEASE","2.2.1.RELEASE","2.3.0.RELEASE","2.3.1.RELEASE","2.3.2.RELEASE","2.3.3.RELEASE","2.3.4.RELEASE","2.4.0.RELEASE","2.4.1.RELEASE","2.4.2.RELEASE","2.4.4.RELEASE","2.4.5.RELEASE","2.4.6.RELEASE","2.4.7.RELEASE","2.4.8.RELEASE","2.5.0.RELEASE","2.5.1.RELEASE"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-hw5c-xm3c-v96w/GHSA-hw5c-xm3c-v96w.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N"}]}