Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-66843

LOW 2.3EPSS 39%

html_sanitize_ex HTML5 scrubber keeps attacker-supplied `<object>` elements, allowing untrusted content embedding

Mitigation

  • Upgrade html_sanitize_ex to 1.5.3 or later.
  • Vendor workaround: Sanitize with basic_html/1, markdown_html/1 or strip_tags/1, none of which allow object, or define a custom scrubber that omits it.
  • A Content-Security-Policy of object-src 'none' blocks an injected <object> from loading, and hosting user uploads on a separate origin removes the escalation path.

Who should check

  • Anyone running rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3
  • Anyone running rrrene html_sanitize_ex >= 8976d64ea0b77d26093a94a43ec48a3978e8d028, < *

Vulnerability facts

Affected
rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 8976d64ea0b77d26093a94a43ec48a3978e8d028, < *
Fixed in
rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
2.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Passive
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: None
  • Confidentiality impact on other systems: Low
  • Integrity impact on other systems: Low
  • Availability impact on other systems: None
EPSS
0.54% chance of exploitation in 30 days (percentile 39, 2026-11-26)
CWE
CWE-829
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
rrrene html_sanitize_ex>= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3—cvelist
rrrene html_sanitize_ex>= 8976d64ea0b77d26093a94a43ec48a3978e8d028, < *—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-66843. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-66843.md
Affected: rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 8976d64ea0b77d26093a94a43ec48a3978e8d028, < *
Fixed in: rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3

Steps:
1. Search this machine and project for rrrene html_sanitize_ex: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-66843 being exploited?

There is no confirmed exploitation: CVE-2026-66843 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.54% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-66843?

Low: CVSS 2.3 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-66843?

rrrene html_sanitize_ex >= 0.3.1, < 1.4.5; >= 1.5.0-rc.0, < 1.5.3; rrrene html_sanitize_ex >= 8976d64ea0b77d26093a94a43ec48a3978e8d028, < *.

Is there a fix for CVE-2026-66843?

Yes. Fixed in rrrene html_sanitize_ex 1.4.5, rrrene html_sanitize_ex 1.5.3. Upgrade html_sanitize_ex to 1.5.3 or later. Vendor workaround: Sanitize with basic_html/1, markdown_html/1 or strip_tags/1, none of which allow object, or define a custom scrubber that omits it. A Content-Security-Policy of object-src 'none' blocks an injected <object> from loading, and hosting user uploads on a separate origin removes the escalation path.

How do I check if I'm affected by CVE-2026-66843?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors