Skip to main content
EPSS 0.2%top 86%

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

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

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

rrrene

html_sanitize_ex

Affected versions
>=0.3.1 <1.4.5>=1.5.0-rc.0 <1.5.3

rrrene

html_sanitize_ex

html_sanitize_ex
pkg:hex/html_sanitize_ex
Affected versions
>=0.3.1 <1.4.5>=1.5.0-rc.0 <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/13/2026, 17:11:33 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 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.

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

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 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