CVE-2026-66370: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in rrrene html_sanitize_ex
CVE-2026-66370 is an open redirect vulnerability in the html_sanitize_ex HTML5 scrubber by rrrene. It allows an unauthenticated remote attacker to manipulate form input elements so that data submitted by a victim is sent to an attacker-controlled external URL. This occurs because the sanitizer does not validate the scheme of URLs in the form and formaction attributes, allowing absolute cross-origin URLs to persist after sanitization. The vulnerability affects versions from 0.3.1 up to but not including 1.5.3. No script execution is possible, and the attacker cannot inject new forms, only retarget existing forms on the page that have an id attribute.
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 in HTML input elements. The sanitizer fails to check the URL scheme, allowing an attacker to specify an absolute cross-origin URL in these attributes. Since HTML allows an input element to be associated with any form on the page by its id, an attacker can retarget an existing form's submission to a malicious external site. This can lead to the victim unknowingly submitting sensitive information, such as credentials, to the attacker. The vulnerability does not enable script execution, and the attacker cannot add new form or button elements, limiting the attack to retargeting existing forms only.
Potential Impact
An attacker can cause a victim to submit form data, including potentially sensitive information like credentials, to an attacker-controlled external site by exploiting the open redirect in sanitized HTML. This can lead to information disclosure. However, no script execution or direct code injection is possible. The attack requires the presence of a form with an id on the rendering page and user interaction to submit the form.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is currently documented, users should monitor vendor communications for updates. Until a fix is available, avoid using vulnerable versions (>=0.3.1 <1.5.3) of html_sanitize_ex or implement additional validation to restrict form and formaction attributes to trusted URLs. Consider restricting or sanitizing input that can influence these attributes to prevent cross-origin redirection.
CVE-2026-66370: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in rrrene html_sanitize_ex
Description
CVE-2026-66370 is an open redirect vulnerability in the html_sanitize_ex HTML5 scrubber by rrrene. It allows an unauthenticated remote attacker to manipulate form input elements so that data submitted by a victim is sent to an attacker-controlled external URL. This occurs because the sanitizer does not validate the scheme of URLs in the form and formaction attributes, allowing absolute cross-origin URLs to persist after sanitization. The vulnerability affects versions from 0.3.1 up to but not including 1.5.3. No script execution is possible, and the attacker cannot inject new forms, only retarget existing forms on the page that have an id attribute.
CVSS v4.0
Score 4.8medium
Affected software
cpe: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 in HTML input elements. The sanitizer fails to check the URL scheme, allowing an attacker to specify an absolute cross-origin URL in these attributes. Since HTML allows an input element to be associated with any form on the page by its id, an attacker can retarget an existing form's submission to a malicious external site. This can lead to the victim unknowingly submitting sensitive information, such as credentials, to the attacker. The vulnerability does not enable script execution, and the attacker cannot add new form or button elements, limiting the attack to retargeting existing forms only.
Potential Impact
An attacker can cause a victim to submit form data, including potentially sensitive information like credentials, to an attacker-controlled external site by exploiting the open redirect in sanitized HTML. This can lead to information disclosure. However, no script execution or direct code injection is possible. The attack requires the presence of a form with an id on the rendering page and user interaction to submit the form.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch is currently documented, users should monitor vendor communications for updates. Until a fix is available, avoid using vulnerable versions (>=0.3.1 <1.5.3) of html_sanitize_ex or implement additional validation to restrict form and formaction attributes to trusted URLs. Consider restricting or sanitizing input that can influence these attributes to prevent cross-origin redirection.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-06T10:15:01.808Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a74ab41bf8831d539ec74d9
Added to database: 08/06/2026, 15:41:53 UTC
Last enriched: 08/06/2026, 15:58:18 UTC
Last updated: 08/06/2026, 15:58:18 UTC
Views: 3
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.