CVE-2026-66370 Details
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.
A URL redirection to untrusted site vulnerability, also known as an open redirect, has been identified in the HTML5 scrubber of the rrrene html_sanitize_ex package, specifically in versions 0.3.1 prior to 1.5.3. This vulnerability allows an unauthenticated remote attacker to manipulate a form already present on the rendering page. The attacker can intercept whatever the victim submits through the form, including credentials, by exploiting the form and formaction attributes of an input element in sanitized HTML. The issue arises because the form attribute can associate an input with any form on the page by its id, even if the input is outside the form. Additionally, the formaction attribute on a submit control can override the form's action, creating a potential for misuse. Notably, the scrubber in question does not allow the inclusion of form or button elements, meaning the attacker cannot create a form of their own. Instead, the vulnerability relies on the presence of a form with an id on the rendering page.
Users can update to version 1.5.3 or later, where this vulnerability has been patched. Alternatively, they can sanitize input with basic_html, markdown_html, or strip_tags, none of which allow input elements, or define a custom scrubber that excludes input elements.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.erlef.org/cves/CVE-2026-66370.html | EEF | PatchThird Party Advisory |
| https://github.com/rrrene/html_sanitize_ex/commit/21394e758cb0ffe12fb9953c30fdedc6016c8f9e | EEF | |
| https://github.com/rrrene/html_sanitize_ex/commit/a1e804ed997e780ea71d14393cf2f701330553a6 | EEF | Patch |
| https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-w3f9-jjhw-wwvq | EEF | Broken Link |
| https://osv.dev/vulnerability/EEF-CVE-2026-66370 | EEF | PatchThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-601 | URL Redirection to Untrusted Site ('Open Redirect') | EEF |
Affected Products
| Product | Versions |
|---|---|
| rrrene htmlsanitizeex | >= 0.3.1, < 1.5.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 19, 2026 | CVE Modified | EEF |
| Aug 11, 2026 | Initial Analysis | [email protected] |
| Aug 6, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2026 | New CVE Received | EEF |