# CVE-2026-66829: html_sanitize_ex HTML5 scrubber keeps attacker-supplied meta refresh, allowing forced cross-origin redirection

- Severity: Low 2.3 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/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.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-08-06T14:49:23.468Z
- Modified: 2026-11-26T17:23:11.437Z
- Also known as: EEF-CVE-2026-66829, GHSA-2c6f-3j54-xpcr
- 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 a remote attacker to force visitors of a page to navigate to a site of the attacker's choosing via a <meta http-equiv="refresh"> element in sanitized HTML. HtmlSanitizeEx.html5/1 keeps attacker-supplied <meta> elements in its output. A meta element acts on the whole document rather than on the fragment it was embedded in, so it can also declare document-wide directives such as Content-Security-Policy.

This is not cross-site scripting. Browsers do not navigate a meta refresh to a javascript: URL, so the uppercase JAVASCRIPT: filter bypass yields no script execution and none was demonstrated.

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 29454dc99513fd9b5b6429ab7b6695ad09889227; before 9f7e38be51edc38f132dfe994f37af5cf5e0e76f
- rrrene htmlsanitizeex: from 0.3.1 before 1.5.3

## Every score

- EEF: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:N/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-2c6f-3j54-xpcr> (advisory, broken-link, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66829.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66829> (patch, related, third-party-advisory)
- <https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028> (related, web)
- <https://github.com/rrrene/html_sanitize_ex/commit/29454dc99513fd9b5b6429ab7b6695ad09889227> (fix, patch)
- <https://github.com/rrrene/html_sanitize_ex/commit/9f7e38be51edc38f132dfe994f37af5cf5e0e76f> (fix, patch)
- <https://hex.pm/packages/html_sanitize_ex> (package)

## Sources

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

---

Page: https://cve.day/CVE-2026-66829 · Whole record: https://cve.day/CVE-2026-66829.json · Rebuilt by cve.day 2026-11-26T17:37:10.788Z
