Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-66370: CWE-601 URL Redirection to Untrusted Site ('Open Redirect') in rrrene html_sanitize_ex

0
Medium
VulnerabilityCVE-2026-66370cvecve-2026-66370cwe-601
Published: 08/06/2026 (08/06/2026, 14:49:15 UTC)
Source: CVE Database V5
Vendor/Project: rrrene
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N

Affected software

html_sanitize_ex
pkg:hex/html_sanitize_ex
Affected versions
>=0.3.1 <1.5.3
GitHub Actionsmore threats →cve
rrrene/html_sanitize_ex
pkg:github/rrrene/html_sanitize_ex
CPE configurations
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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 15:58:18 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses