{"id":"CVE-2026-66829","aliases":["CVE-2026-66829","EEF-CVE-2026-66829","GHSA-2c6f-3j54-xpcr"],"related":[],"kind":"vulnerability","state":"published","title":"html_sanitize_ex HTML5 scrubber keeps attacker-supplied meta refresh, allowing forced cross-origin redirection","summary":"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.\n\nThis 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.\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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nThis 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.\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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nURL 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`.\n\nThis 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.\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.\n\n## Workarounds\n\nSanitize with `basic_html/1`, `markdown_html/1` or `strip_tags/1`, none of which allow `meta`, or define a custom scrubber that omits it.\n\n## Configurations\n\nOnly `HtmlSanitizeEx.html5/1`, and custom scrubbers declared with `use HtmlSanitizeEx, extend: :html5`, allow the `meta` element, and the sanitized output must be rendered to other users.","format":"markdown","source":"eef"},{"lang":"es","text":"La vulnerabilidad de redirección de URL a sitio no confiable (’redirección abierta’) en el depurador HTML5 de rrrene html_sanitize_ex permite a un atacante remoto forzar a los visitantes de una página a navegar a un sitio elegido por el atacante a través de un elemento menor quemeta http-equiv=“refresh”mayor que en HTML saneado. HtmlSanitizeEx.html5/1 mantiene los elementos [meta] proporcionados por el atacante en su salida. Un elemento meta actúa sobre todo el documento en lugar de sobre el fragmento en el que fue incrustado, por lo que también puede declarar directivas a nivel de documento como Content-Security-Policy.\n\nEsto no es cross-site scripting. Los navegadores no navegan una meta refresh a una URL javascript_disabled: , por lo que el bypass del filtro javascript_disabled: en mayúsculas no produce ejecución de script y no se demostró ninguna.\n\nEste problema afecta a html_sanitize_ex: desde 0.3.1 antes de 1.5.3.","source":"nvd"}],"published":"2026-08-06T14:49:23.468Z","modified":"2026-11-26T17:23:11.437Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":2.3,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"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","score":2.3,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"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"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"semver","introduced":"0.3.1","fixed":"1.4.5","status":"affected"},{"type":"semver","introduced":"1.5.0-rc.0","fixed":"1.5.3","status":"affected"}],"vendor":"rrrene","product":"html_sanitize_ex","package":"html_sanitize_ex","cpe":"cpe:2.3:a:rrrene:html_sanitize_ex:*:*:*:*:*:*:*:*","repo":"https://github.com/rrrene/html_sanitize_ex","source":"cvelist"},{"ranges":[{"type":"git","introduced":"8976d64ea0b77d26093a94a43ec48a3978e8d028","fixed":"*","status":"affected"}],"vendor":"rrrene","product":"html_sanitize_ex","package":"rrrene/html_sanitize_ex","cpe":"cpe:2.3:a:rrrene:html_sanitize_ex:*:*:*:*:*:*:*:*","repo":"https://github.com/rrrene/html_sanitize_ex","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.3.1","status":"affected","fixed":"1.4.5"},{"type":"semver","introduced":"1.5.0-rc.0","status":"affected","fixed":"1.5.3"}],"ecosystem":"Hex","package":"html_sanitize_ex","purl":"pkg:hex/html_sanitize_ex","source":"eef"},{"ranges":[{"type":"git","introduced":"8976d64ea0b77d26093a94a43ec48a3978e8d028","status":"affected","fixed":"29454dc99513fd9b5b6429ab7b6695ad09889227"},{"type":"git","status":"affected","fixed":"9f7e38be51edc38f132dfe994f37af5cf5e0e76f"}],"repo":"https://github.com/rrrene/html_sanitize_ex","source":"eef"},{"ranges":[{"status":"affected","introduced":"0.3.1","fixed":"1.5.3"}],"vendor":"rrrene","product":"htmlsanitizeex","cpe":"cpe:2.3:a:rrrene:htmlsanitizeex:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-2c6f-3j54-xpcr","tags":["advisory","broken-link","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-66829.html","tags":["patch","related","third-party-advisory","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-66829","tags":["patch","related","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/29454dc99513fd9b5b6429ab7b6695ad09889227","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/9f7e38be51edc38f132dfe994f37af5cf5e0e76f","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/html_sanitize_ex","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","René Föhring"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-06T15:42:40.366Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-66829","url":"https://www.cve.org/CVERecord?id=CVE-2026-66829","licence":"CVE Terms of Use","modified":"2026-11-20T06:08:03.355Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-66829","url":"https://osv.dev/vulnerability/EEF-CVE-2026-66829","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:11.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-66829","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66829","licence":"Public domain","modified":"2026-11-20T06:17:36.063Z"}],"updatedAt":"2026-11-26T17:37:10.788Z","epss":{"score":0.0064,"percentile":0.51981,"date":"2026-12-01T12:00:22.000Z"}}