CVE-2026-66843: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in rrrene html_sanitize_ex
CVE-2026-66843 is a low-severity vulnerability in the html_sanitize_ex library (versions 0.3.1 up to but not including 1.5.3). It involves the inclusion of functionality from an untrusted control sphere via the data attribute of an <object> element in sanitized HTML. This allows a remote attacker to load arbitrary documents into a trusted page. However, this does not result in unconditional cross-site scripting due to browser restrictions on javascript: URLs in <object data> and the opaque origin of data: documents.
AI Analysis
Technical Summary
The vulnerability in rrrene's html_sanitize_ex library arises from insufficient sanitization of the <object> element's data attribute in HTML5 scrubber functionality. The <object> element 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 an attacker to load a document of their choosing into a trusted page. Despite this, exploitation is limited because javascript: URLs do not execute in <object data> in modern browsers, data: URIs load in an opaque origin, and executing host-origin scripts requires the application to serve attacker-controlled content from a same-origin path.
Potential Impact
An attacker can cause a trusted page to load arbitrary documents via the <object> element's data attribute in sanitized HTML. This could potentially lead to content injection or information disclosure under specific conditions. However, the vulnerability does not enable unconditional cross-site scripting or direct script execution due to browser security models and origin restrictions. The overall impact is limited and rated as low severity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider avoiding use of affected versions or apply additional sanitization or filtering controls on <object> elements and their data attributes. Monitor vendor channels for updates and patches addressing this issue.
CVE-2026-66843: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in rrrene html_sanitize_ex
Description
CVE-2026-66843 is a low-severity vulnerability in the html_sanitize_ex library (versions 0.3.1 up to but not including 1.5.3). It involves the inclusion of functionality from an untrusted control sphere via the data attribute of an <object> element in sanitized HTML. This allows a remote attacker to load arbitrary documents into a trusted page. However, this does not result in unconditional cross-site scripting due to browser restrictions on javascript: URLs in <object data> and the opaque origin of data: documents.
CVSS v4.0
Score 2.3low
Affected software
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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in rrrene's html_sanitize_ex library arises from insufficient sanitization of the <object> element's data attribute in HTML5 scrubber functionality. The <object> element 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 an attacker to load a document of their choosing into a trusted page. Despite this, exploitation is limited because javascript: URLs do not execute in <object data> in modern browsers, data: URIs load in an opaque origin, and executing host-origin scripts requires the application to serve attacker-controlled content from a same-origin path.
Potential Impact
An attacker can cause a trusted page to load arbitrary documents via the <object> element's data attribute in sanitized HTML. This could potentially lead to content injection or information disclosure under specific conditions. However, the vulnerability does not enable unconditional cross-site scripting or direct script execution due to browser security models and origin restrictions. The overall impact is limited and rated as low severity.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider avoiding use of affected versions or apply additional sanitization or filtering controls on <object> elements and their data attributes. Monitor vendor channels for updates and patches addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-06T09:00:01.259Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a74ab42bf8831d539ec74e5
Added to database: 08/06/2026, 15:41:54 UTC
Last enriched: 08/06/2026, 15:57:55 UTC
Last updated: 08/06/2026, 16:04:02 UTC
Views: 5
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.