Skip to main content
EPSS 0.4%top 68%

URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows an unauthenticated remote… (CVE-2026-66370)

0
Medium
Published: 08/06/2026 (08/06/2026, 18:30:49 UTC)
Source: GCVE Database

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 to redirect form submissions to an attacker-controlled external URL. The vulnerability arises because the sanitizer does not validate the scheme of the form and formaction attributes on input elements, allowing cross-origin URLs to persist after sanitization. No script execution is possible, and the attacker cannot inject new forms, only retarget existing forms on the page. This affects versions from 0.3.1 up to but not including 1.5.3, including 1.5.0-rc.0.

CVSS v3.1

Score 6.1medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected software

html_sanitize_ex
pkg:hex/html_sanitize_ex
Affected versions
>=0.3.1 <1.5.3

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/19/2026, 15:06:23 UTC

Technical Analysis

The vulnerability in rrrene's html_sanitize_ex (CVE-2026-66370) involves improper sanitization of the form and formaction attributes on <input> elements. Because HTML allows input elements to be associated with forms by id even if outside the form, and formaction can override the form's action URL, an attacker can craft sanitized HTML that retargets an existing form's submission to an arbitrary external URL. The sanitizer does not check the URL scheme, so absolute cross-origin URLs survive. The attacker cannot add new forms or buttons, so the attack requires the presence of a form with an id on the rendering page. This vulnerability affects versions >=0.3.1 and <1.5.3, including 1.5.0-rc.0. The CVSS 3.1 base score is 4.8 (medium severity).

Potential Impact

An attacker can cause a victim's form submission to be redirected to an attacker-controlled site, 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 that the target page already contains a form with an id attribute. There are no known exploits in the wild.

Mitigation Recommendations

No official patch or fix is currently documented. 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 the rendering pages do not contain forms with id attributes that could be retargeted. Monitor vendor channels for updates and apply official fixes once released.

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

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-r8xc-fmjg-37c5
Osv Schema Version
1.4.0
Aliases
["CVE-2026-66370"]
Database Specific Severity
MODERATE
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a7b6fd2bf8831d5393ea5ab

Added to database: 08/11/2026, 18:54:10 UTC

Last enriched: 08/19/2026, 15:06:23 UTC

Last updated: 09/25/2026, 01:47:44 UTC

Views: 58

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