{"id":"CVE-2026-40986","title":"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 cont…","summary":"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 cont…","severity":"medium","cvss":4.8,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","cwe":["CWE-79"],"vendor":"broadcom","product":"spring_web_flow","affected":["spring_web_flow < 2.5.2","spring_web_flow >= 3.0.0, < 3.0.1.1","spring_web_flow = 4.0.0"],"patched":["spring_web_flow 3.0.1.1"],"published":"2026-06-11","updated":"2026-09-04","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40986","references":[{"url":"https://spring.io/security/cve-2026-40986","label":"security@vmware.com"}],"tags":["nvd"],"epss":0.00206,"epssPercentile":0.11029,"ingestedAt":"2026-09-05T13:39:55.097Z","slug":"CVE-2026-40986","body":"## Overview\n\nSpring 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.\n\n## Affected\n\n- `spring_web_flow < 2.5.2`\n- `spring_web_flow >= 3.0.0, < 3.0.1.1`\n- `spring_web_flow = 4.0.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `spring_web_flow 3.0.1.1`","depth":"sunlit","depthScore":26,"depthScoreParts":{"impact":26.4,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}