{"id":"CVE-2026-66829","published":"2026-08-06T14:49:23Z","modified":"2026-11-20T06:08:03Z","title":"html_sanitize_ex HTML5 scrubber keeps attacker-supplied meta refresh, allowing forced cross-origin redirection","vendor":"rrrene","product":"html_sanitize_ex","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00594,"percentile":0.49322,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-2c6f-3j54-xpcr","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-66829.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-66829","tags":["related"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028","tags":["related"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/29454dc99513fd9b5b6429ab7b6695ad09889227","tags":["patch"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/9f7e38be51edc38f132dfe994f37af5cf5e0e76f","tags":["patch"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":9.86},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"rrrene","affectedVersions":[{"vendor":"rrrene","product":"html_sanitize_ex","versions":[">= 0.3.1, < 1.4.5",">= 1.5.0-rc.0, < 1.5.3"]},{"vendor":"rrrene","product":"html_sanitize_ex","versions":[">= 8976d64ea0b77d26093a94a43ec48a3978e8d028"]}],"fixedVersions":[{"vendor":"rrrene","product":"html_sanitize_ex","versions":["29454dc99513fd9b5b6429ab7b6695ad09889227","9f7e38be51edc38f132dfe994f37af5cf5e0e76f"]}],"workarounds":{"items":["Sanitize with basic_html/1, markdown_html/1 or strip_tags/1, none of which allow meta, or define a custom scrubber that omits it."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-154","name":"Resource Location Spoofing"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-06T15:42:40.366099Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-54082","exploited":false,"provenance":"source"}}