{"id":"CVE-2026-40986","aliases":["EUVD-2026-36201","GHSA-hw5c-xm3c-v96w","ROOT-APP-MAVEN-CVE-2026-40986"],"status":"published","title":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","severity":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00206,"percentile":0.10744,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-06-11T05:03:26Z","modified":"2026-10-28T02:30:41Z","fixes":[{"ecosystem":"Maven","package":"org.springframework.webflow:spring-webflow","fixed_in":["4.0.1","3.0.2"],"sources":["ghsa","osv"]},{"ecosystem":"Root:Maven","package":"io.root.org.springframework.webflow:spring-js-resources","fixed_in":["3.0.1-root.io.1"],"sources":["osv"]},{"ecosystem":"Root:Maven","package":"org.springframework.webflow:spring-js-resources","fixed_in":["3.0.1-aikido.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.webflow:spring-webflow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"last_affected":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"]},{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.webflow:spring-webflow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"last_affected":"3.0.1"},{"fixed":"3.0.2"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.springframework.webflow:spring-webflow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.5.1"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.webflow:spring-webflow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.1"}]}],"versions":["4.0.0"]},{"source":"osv","ecosystem":"Maven","package":"org.springframework.webflow:spring-webflow","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.0.2"}]}],"versions":["3.0.0","3.0.1"]},{"source":"osv","ecosystem":"Maven","package":"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"]},{"source":"osv","ecosystem":"Root:Maven","package":"io.root.org.springframework.webflow:spring-js-resources","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1-root.io.1"}]}]},{"source":"osv","ecosystem":"Root:Maven","package":"org.springframework.webflow:spring-js-resources","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.1-aikido.1"}]}]}],"products":[{"vendor":"broadcom","product":"spring_web_flow"},{"vendor":"spring","product":"spring web flow"}],"references":[{"url":"https://spring.io/security/cve-2026-40986","tags":["Vendor Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40986","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hw5c-xm3c-v96w"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40986.json","tags":["advisory"]},{"url":"https://github.com/spring-projects/spring-webflow","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-40986","title":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","status":"published","published":"2026-06-11T05:03:26.458Z","modified":"2026-06-23T19:42:23.692Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T13:43:11.445168Z"}],"euvd":[{"id":"EUVD-2026-36201","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","status":"published","published":"2026-06-11T05:03:26Z","modified":"2026-06-23T19:42:23Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T18:20:31.51905Z"}],"ghsa":[{"id":"GHSA-hw5c-xm3c-v96w","title":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","status":"published","published":"2026-06-11T09:31:55Z","modified":"2026-08-18T20:14:24Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:41:03.602876Z"}],"nvd":[{"id":"CVE-2026-40986","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","status":"published","published":"2026-06-11T07:16:26.92Z","modified":"2026-09-04T18:11:51.27Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:12:23.485267Z"}],"osv":[{"id":"CVE-2026-40986","title":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","status":"published","published":"2026-06-11T05:03:26.458Z","modified":"2026-10-28T02:30:41.137561777Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:45:03.424067Z"},{"id":"GHSA-hw5c-xm3c-v96w","title":"Spring Web Flow JS RemotingHandler renders non-HTML Response as HTML","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.\n\nAffected versions:\nSpring Web Flow 4.0.0; 3.0.0 through 3.0.1; 2.5.0 through 2.5.1.","status":"published","published":"2026-06-11T09:31:55Z","modified":"2026-08-18T20:41:05.010025Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:49.621585Z"},{"id":"ROOT-APP-MAVEN-CVE-2026-40986","title":"CVE-2026-40986 in io.root.org.springframework.webflow:spring-js-resources - Patched by Root","description":"Root has patched CVE-2026-40986 in the io.root.org.springframework.webflow:spring-js-resources package for Root:Maven. Multiple fixed versions available.","status":"published","published":"2026-07-01T08:32:43Z","modified":"2026-07-01T12:34:26.246805126Z","updated_at":"2026-11-02T15:53:27.066589Z"}]}}
