{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-66370","id":"CVE-2026-66370","title":"html_sanitize_ex HTML5 scrubber keeps attacker-supplied form-association attributes, allowing form hijacking","description":"URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows an unauthenticated remote attacker to retarget a form already on the rendering page and receive whatever the victim submits, including credentials, via the form and formaction attributes on an <input> element in sanitized HTML. HTML's form attribute associates an input with any","descriptionLong":"URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows an unauthenticated remote attacker to retarget a form already on the rendering page and receive whatever the victim submits, including credentials, via the form and formaction attributes on an <input> element in sanitized HTML. HTML's form attribute associates an input with any form on the page by its id even when the input sits outside that form, and formaction on a submit control overrides the owning form's action. Neither attribute receives a scheme check, so an absolute cross-origin URL survives sanitizing.\n\nNo script executes. The scrubber allows neither form nor button, so the attacker cannot introduce a form of their own and the rendering page must already contain a form carrying an id.\n\nThis issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.3.","published":"2026-08-06T14:49:15.841Z","updated":"2026-11-19T10:00:15.439596075Z","reserved":"2026-08-06T10:15:01.808Z","status":"Modified","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N","rating":"medium","source":"EEF"},{"version":"4.0","score":4.8,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N","rating":"unrated","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["rrrene html_sanitize_ex"],"affectedProducts":[{"vendor":"rrrene","product":"html_sanitize_ex","defaultStatus":"unaffected","versions":[{"lessThan":"1.4.5","status":"affected","version":"0.3.1","versionType":"semver"},{"lessThan":"1.5.3","status":"affected","version":"1.5.0-rc.0","versionType":"semver"}],"platforms":[]},{"vendor":"rrrene","product":"html_sanitize_ex","defaultStatus":"unaffected","versions":[{"changes":[{"at":"a1e804ed997e780ea71d14393cf2f701330553a6","status":"unaffected"},{"at":"21394e758cb0ffe12fb9953c30fdedc6016c8f9e","status":"unaffected"}],"lessThan":"*","status":"affected","version":"8976d64ea0b77d26093a94a43ec48a3978e8d028","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-601"],"aliases":["EEF-CVE-2026-66370","GHSA-w3f9-jjhw-wwvq"],"references":[{"url":"https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-w3f9-jjhw-wwvq","tags":["vendor-advisory","related","Broken Link","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-66370.html","tags":["related","Patch","Third Party Advisory","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-66370","tags":["related","Patch","Third Party Advisory","web"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028","tags":["related","fix"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/a1e804ed997e780ea71d14393cf2f701330553a6","tags":["patch","Patch","fix"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/21394e758cb0ffe12fb9953c30fdedc6016c8f9e","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66370.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66370","tags":["advisory"]},{"url":"https://github.com/rrrene/html_sanitize_ex","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00689,"epssPercentile":0.53541,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-66370","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66370","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-66370","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-66370","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}