CVE-2026-66370: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in rrrene html_sanitize_ex
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.
AI Analysis
Technical Summary
The vulnerability in rrrene's html_sanitize_ex (versions >=0.3.1 <1.5.3) involves improper sanitization of the form and formaction attributes on <input> elements. HTML allows an input element to be associated with any form on the page by id via the form attribute, and the formaction attribute on submit controls overrides the form's action URL. The sanitizer does not check the URL scheme, so an attacker can craft sanitized HTML that causes form submissions to be redirected to an untrusted external site. This is an open redirect (CWE-601) vulnerability that does not allow script execution or injection of new forms, requiring the victim page to already contain a form with an id.
Potential Impact
An attacker can cause a victim's form submission to be redirected to an attacker-controlled external URL, potentially capturing sensitive data such as credentials submitted via the form. Since no script execution is involved, the impact is limited to redirecting form data. The vulnerability requires user interaction (UI) and an existing form on the page with an id attribute. The CVSS 4.0 base score is 4.8 (medium severity), reflecting network attack vector, low complexity, no privileges required, and partial user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be cautious when sanitizing HTML with html_sanitize_ex versions >=0.3.1 and <1.5.3, especially in contexts where untrusted input can influence form input elements. Consider additional validation or filtering of form and formaction attributes outside of the sanitizer to prevent cross-origin URLs.
CVE-2026-66370: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in rrrene html_sanitize_ex
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.
CVSS v4.0
Score 4.8medium
Affected software
rrrene
html_sanitize_ex
rrrene
html_sanitize_ex
pkg:hex/html_sanitize_excpe:2.3:a:rrrene:html_sanitize_ex:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in rrrene's html_sanitize_ex (versions >=0.3.1 <1.5.3) involves improper sanitization of the form and formaction attributes on <input> elements. HTML allows an input element to be associated with any form on the page by id via the form attribute, and the formaction attribute on submit controls overrides the form's action URL. The sanitizer does not check the URL scheme, so an attacker can craft sanitized HTML that causes form submissions to be redirected to an untrusted external site. This is an open redirect (CWE-601) vulnerability that does not allow script execution or injection of new forms, requiring the victim page to already contain a form with an id.
Potential Impact
An attacker can cause a victim's form submission to be redirected to an attacker-controlled external URL, potentially capturing sensitive data such as credentials submitted via the form. Since no script execution is involved, the impact is limited to redirecting form data. The vulnerability requires user interaction (UI) and an existing form on the page with an id attribute. The CVSS 4.0 base score is 4.8 (medium severity), reflecting network attack vector, low complexity, no privileges required, and partial user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be cautious when sanitizing HTML with html_sanitize_ex versions >=0.3.1 and <1.5.3, especially in contexts where untrusted input can influence form input elements. Consider additional validation or filtering of form and formaction attributes outside of the sanitizer to prevent cross-origin URLs.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-06T10:15:01.808Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a74ab41bf8831d539ec74d9
Added to database: 08/06/2026, 15:41:53 UTC
Last enriched: 08/13/2026, 17:11:33 UTC
Last updated: 09/18/2026, 22:01:37 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.