# CVE-2026-66370: html_sanitize_ex HTML5 scrubber keeps attacker-supplied form-association attributes, allowing form hijacking

- Severity: Medium 4.8 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-08-06T14:49:15.841Z
- Modified: 2026-11-25T06:30:12.841Z
- Also known as: EEF-CVE-2026-66370, GHSA-w3f9-jjhw-wwvq
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

## 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 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.

No 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.

This issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.3.

(As written by CVE List.)

## Affected

- html_sanitize_ex: from 0.3.1 before 1.4.5; from 1.5.0-rc.0 before 1.5.3
- rrrene/html_sanitize_ex: from 8976d64ea0b77d26093a94a43ec48a3978e8d028 before *
- html_sanitize_ex (Hex): from 0.3.1 before 1.4.5; from 1.5.0-rc.0 before 1.5.3
- https://github.com/rrrene/html_sanitize_ex: from 8976d64ea0b77d26093a94a43ec48a3978e8d028 before 21394e758cb0ffe12fb9953c30fdedc6016c8f9e; before a1e804ed997e780ea71d14393cf2f701330553a6
- rrrene htmlsanitizeex: from 0.3.1 before 1.5.3

## Every score

- EEF: CVSS:4.0 4.8 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-w3f9-jjhw-wwvq> (advisory, broken-link, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66370.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66370> (patch, related, third-party-advisory)
- <https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028> (related, web)
- <https://github.com/rrrene/html_sanitize_ex/commit/21394e758cb0ffe12fb9953c30fdedc6016c8f9e> (fix, patch)
- <https://github.com/rrrene/html_sanitize_ex/commit/a1e804ed997e780ea71d14393cf2f701330553a6> (fix, patch)
- <https://hex.pm/packages/html_sanitize_ex> (package)

## Sources

- CVE List: [CVE-2026-66370](https://www.cve.org/CVERecord?id=CVE-2026-66370), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-66370](https://osv.dev/vulnerability/EEF-CVE-2026-66370), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-66370](https://nvd.nist.gov/vuln/detail/CVE-2026-66370), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-66370 · Whole record: https://cve.day/CVE-2026-66370.json · Rebuilt by cve.day 2026-11-25T22:59:31.270Z
