Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

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

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

html_sanitize_ex
pkg:hex/html_sanitize_ex
Affected versions
>=0.3.1 <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/06/2026, 15:57:55 UTC

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.

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