CVE-2026-66370
published medium CVSS 4.0 · 4.8html_sanitize_ex HTML5 scrubber keeps attacker-supplied form-association attributes, allowing form hijacking
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rrrene | — | html_sanitize_ex0.3.1 to < 1.4.5 · 1.5.0-rc.0 to < 1.5.3 · Other versions: unaffected | Affected | Not stated | EEF |
| rrrene | — | rrrene/html_sanitize_exhtml_sanitize_ex · 8976d64ea0b77d26093a94a43ec48a3978e8d028 and later (affected · git); changes: unaffected at 21394e758cb0ffe12fb9953c30fdedc6016c8f9e, unaffected at a1e804ed997e780ea71d14393cf2f701330553a6 · Other versions: unaffected | Version-specific | Not stated | EEF |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rrrene | html_sanitize_ex | 0.3.1 to < 1.4.5 (affected · semver)1.5.0-rc.0 to < 1.5.3 (affected · semver)Default: unaffected | EEF · cna |
| rrrene | html_sanitize_ex | 8976d64ea0b77d26093a94a43ec48a3978e8d028 and later (affected · git); changes: unaffected at 21394e758cb0ffe12fb9953c30fdedc6016c8f9e, unaffected at a1e804ed997e780ea71d14393cf2f701330553a6Default: unaffected | EEF · cna |
Weaknesses
1- CWE-601 CWE-601 URL Redirection to Untrusted Site
References
6- EEF CNA record for CVE-2026-66370 https://cna.erlef.org/cves/CVE-2026-66370.html
- Fix commit 21394e7 in rrrene/html_sanitize_ex https://github.com/rrrene/html_sanitize_ex/commit/21394e758cb0ffe12fb9953c30fdedc6016c8f9e
- Introducing commit 8976d64 in rrrene/html_sanitize_ex https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028
- Fix commit a1e804e in rrrene/html_sanitize_ex https://github.com/rrrene/html_sanitize_ex/commit/a1e804ed997e780ea71d14393cf2f701330553a6
- https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-w3f9-jjhw-wwvq
- OSV record EEF-CVE-2026-66370 https://osv.dev/vulnerability/EEF-CVE-2026-66370
Provider assertions
2EEF · cna
html_sanitize_ex HTML5 scrubber keeps attacker-supplied form-association attributes, allowing form hijacking
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fb684915bcddc83378520378bee385836fb3a64a15f6b13b8a2663f57c86a8ba
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record