CVE-2026-66843: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in rrrene html_sanitize_ex
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.
AI Analysis
Technical Summary
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.
CVE-2026-66843: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in rrrene 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
Affected software
rrrene
html_sanitize_ex
rrrene
html_sanitize_ex
pkg:hex/html_sanitize_excpe: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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.