Skip to main content
EPSS 0.3%top 78%

CVE-2026-66843: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in rrrene html_sanitize_ex

0
Low
VulnerabilityCVE-2026-66843cvecve-2026-66843cwe-829
Published: 08/06/2026 (08/06/2026, 14:48:20 UTC)
Source: CVE Database V5
Vendor/Project: rrrene
Product: html_sanitize_ex

Description

Inclusion of Functionality from Untrusted Control Sphere vulnerability in the HTML5 scrubber in rrrene html_sanitize_ex allows a remote attacker to load a document of their choosing into a trusted page via the data attribute of an <object> element in sanitized HTML. object is the one URI-bearing element in lib/html_sanitize_ex/scrubber/html5.ex never registered through allow_tag_with_uri_attributes/3, and its only guard is a prefix match on lowercase "javascript:", so mixed-case variants, data: URIs, protocol-relative URLs and same-origin paths all survive. This is not unconditional cross-site scripting. A javascript: URL does not execute through <object data> in current browsers, data: documents load in an opaque origin, and host-origin script execution additionally requires the application to serve attacker-controlled content from a same-origin path. 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 2.3low

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/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:14:50 UTC

Technical Analysis

The vulnerability in rrrene's html_sanitize_ex library (CVE-2026-66843) arises from insufficient sanitization of the <object> element's data attribute in the HTML5 scrubber. The <object> tag is not properly registered through allow_tag_with_uri_attributes/3, and its only guard is a prefix match on lowercase "javascript:", which can be bypassed by mixed-case variants, data: URIs, protocol-relative URLs, and same-origin paths. This allows a remote attacker to load arbitrary documents into a trusted page context. However, current browsers prevent javascript: URLs from executing in <object data>, and data: URIs load with opaque origins, limiting the impact. Full script execution additionally requires the application to serve attacker-controlled content from a same-origin path. The affected versions are from 0.3.1 before 1.5.3.

Potential Impact

The impact is limited due to browser security restrictions: javascript: URLs do not execute via <object data> elements, and data: URIs load with opaque origins, preventing direct script execution. Exploitation requires additional conditions such as the application serving attacker-controlled content from a same-origin path. Therefore, the vulnerability does not lead to unconditional cross-site scripting but may allow loading of attacker-chosen documents in a trusted page, potentially leading to partial trust boundary violations.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch is documented as of now. Users should monitor vendor communications for updates. Since the vulnerability requires specific conditions for exploitation and is of low severity, immediate urgent action is not indicated until a patch or official guidance is available.

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-06T09:00:01.259Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a74ab42bf8831d539ec74e5

Added to database: 08/06/2026, 15:41:54 UTC

Last enriched: 08/13/2026, 17:14:50 UTC

Last updated: 09/17/2026, 22:01:37 UTC

Views: 54

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