# CVE-2026-66843: html_sanitize_ex HTML5 scrubber keeps attacker-supplied `<object>` elements, allowing untrusted content embedding

- Severity: Low 2.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-08-06T14:48:20.513Z
- Modified: 2026-11-25T06:31:00.206Z
- Also known as: EEF-CVE-2026-66843, GHSA-xmm9-jc22-rcgj
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: EEF

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

(As written by CVE List.)

## Affected

- html_sanitize_ex: from 0.3.1 before 1.4.5; from 1.5.0-rc.0 before 1.5.3
- rrrene/html_sanitize_ex: from 8976d64ea0b77d26093a94a43ec48a3978e8d028 before *
- html_sanitize_ex (Hex): from 0.3.1 before 1.4.5; from 1.5.0-rc.0 before 1.5.3
- https://github.com/rrrene/html_sanitize_ex: from 8976d64ea0b77d26093a94a43ec48a3978e8d028 before bec27fec4de99e40c68c4285a610e09e791a3eaf; before ce038aa1af5a960d50f8eb5d368cc57bb2b9a9f0
- rrrene htmlsanitizeex: from 0.3.1 before 1.5.3

## Every score

- EEF: CVSS:4.0 2.3 Low `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-xmm9-jc22-rcgj> (advisory, broken-link, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-66843.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-66843> (patch, related, third-party-advisory)
- <https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028> (related, web)
- <https://github.com/rrrene/html_sanitize_ex/commit/bec27fec4de99e40c68c4285a610e09e791a3eaf> (fix, patch)
- <https://github.com/rrrene/html_sanitize_ex/commit/ce038aa1af5a960d50f8eb5d368cc57bb2b9a9f0> (fix, patch)
- <https://hex.pm/packages/html_sanitize_ex> (package)

## Sources

- CVE List: [CVE-2026-66843](https://www.cve.org/CVERecord?id=CVE-2026-66843), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-66843](https://osv.dev/vulnerability/EEF-CVE-2026-66843), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-66843](https://nvd.nist.gov/vuln/detail/CVE-2026-66843), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-66843 · Whole record: https://cve.day/CVE-2026-66843.json · Rebuilt by cve.day 2026-11-25T22:59:31.271Z
