URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows an unauthenticated remote… (CVE-2026-66370)
CVE-2026-66370 is an Open Redirect vulnerability in the HTML5 scrubber component of the html_sanitize_ex library. It allows an unauthenticated remote attacker to manipulate form input elements in sanitized HTML to redirect form submissions to an attacker-controlled external URL. The vulnerability arises because the scrubber does not validate the scheme of URLs in the form and formaction attributes, allowing cross-origin redirection. The attacker cannot inject new forms or buttons, so the attack requires the presence of an existing form with an id on the page. No script execution is possible through this vulnerability.
AI Analysis
Technical Summary
The vulnerability in html_sanitize_ex (versions from 0.3.1 before 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, even if the input is outside the form, and the formaction attribute on a submit control overrides the form's action URL. The sanitizer does not check the URL scheme, so absolute cross-origin URLs remain intact after sanitization, enabling an attacker to redirect form submissions to untrusted external sites. This is classified as CWE-601 (Open Redirect). The CVSS 3.1 score is 6.1 (medium severity) with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
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. The vulnerability does not allow script execution or injection of new forms, so the attack depends on the presence of an existing form with an id on the page. The impact includes limited confidentiality and integrity loss due to redirection of form data to an untrusted site.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using vulnerable versions of html_sanitize_ex or ensure that pages do not contain forms with predictable ids that could be abused. Consider additional input validation or sanitization on the server side to prevent untrusted URL redirection. Monitor vendor channels for official patches or updates.
URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows an unauthenticated remote… (CVE-2026-66370)
Description
CVE-2026-66370 is an Open Redirect vulnerability in the HTML5 scrubber component of the html_sanitize_ex library. It allows an unauthenticated remote attacker to manipulate form input elements in sanitized HTML to redirect form submissions to an attacker-controlled external URL. The vulnerability arises because the scrubber does not validate the scheme of URLs in the form and formaction attributes, allowing cross-origin redirection. The attacker cannot inject new forms or buttons, so the attack requires the presence of an existing form with an id on the page. No script execution is possible through this vulnerability.
CVSS v3.1
Score 6.1medium
Affected software
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 html_sanitize_ex (versions from 0.3.1 before 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, even if the input is outside the form, and the formaction attribute on a submit control overrides the form's action URL. The sanitizer does not check the URL scheme, so absolute cross-origin URLs remain intact after sanitization, enabling an attacker to redirect form submissions to untrusted external sites. This is classified as CWE-601 (Open Redirect). The CVSS 3.1 score is 6.1 (medium severity) with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
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. The vulnerability does not allow script execution or injection of new forms, so the attack depends on the presence of an existing form with an id on the page. The impact includes limited confidentiality and integrity loss due to redirection of form data to an untrusted site.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using vulnerable versions of html_sanitize_ex or ensure that pages do not contain forms with predictable ids that could be abused. Consider additional input validation or sanitization on the server side to prevent untrusted URL redirection. Monitor vendor channels for official patches or updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-r8xc-fmjg-37c5
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-66370"]
- Ecosystems
- []
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a7b6fd2bf8831d5393ea5ab
Added to database: 08/11/2026, 18:54:10 UTC
Last enriched: 08/11/2026, 19:12:34 UTC
Last updated: 08/12/2026, 02:40:59 UTC
Views: 2
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.