{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-66843","id":"CVE-2026-66843","title":"html_sanitize_ex HTML5 scrubber keeps attacker-supplied `<object>` elements, allowing untrusted content embedding","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_attribute","descriptionLong":"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.\n\nThis 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.\n\nThis issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.3.","published":"2026-08-06T14:48:20.513Z","updated":"2026-11-19T10:00:22.293758220Z","reserved":"2026-08-06T09:00:01.259Z","status":"Modified","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":2.3,"vector":"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","rating":"low","source":"EEF"},"metrics":[{"version":"4.0","score":2.3,"vector":"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","rating":"low","source":"EEF"},{"version":"4.0","score":2.3,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"low","products":["rrrene html_sanitize_ex"],"affectedProducts":[{"vendor":"rrrene","product":"html_sanitize_ex","defaultStatus":"unaffected","versions":[{"lessThan":"1.4.5","status":"affected","version":"0.3.1","versionType":"semver"},{"lessThan":"1.5.3","status":"affected","version":"1.5.0-rc.0","versionType":"semver"}],"platforms":[]},{"vendor":"rrrene","product":"html_sanitize_ex","defaultStatus":"unaffected","versions":[{"changes":[{"at":"bec27fec4de99e40c68c4285a610e09e791a3eaf","status":"unaffected"},{"at":"ce038aa1af5a960d50f8eb5d368cc57bb2b9a9f0","status":"unaffected"}],"lessThan":"*","status":"affected","version":"8976d64ea0b77d26093a94a43ec48a3978e8d028","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-829"],"aliases":["EEF-CVE-2026-66843","GHSA-xmm9-jc22-rcgj"],"references":[{"url":"https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-xmm9-jc22-rcgj","tags":["vendor-advisory","related","Broken Link","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-66843.html","tags":["related","Patch","Third Party Advisory","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-66843","tags":["related","Patch","Third Party Advisory","web"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/8976d64ea0b77d26093a94a43ec48a3978e8d028","tags":["related","fix"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/bec27fec4de99e40c68c4285a610e09e791a3eaf","tags":["patch","Patch","fix"]},{"url":"https://github.com/rrrene/html_sanitize_ex/commit/ce038aa1af5a960d50f8eb5d368cc57bb2b9a9f0","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66843.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66843","tags":["advisory"]},{"url":"https://github.com/rrrene/html_sanitize_ex","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00947,"epssPercentile":0.61912,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-66843","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-66843","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-66843","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-66843","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}