CVE-2026-68747
Low 2.3No known exploitationFix availableCSS sanitizer allowlist bypass in html_sanitize_ex via non-declaration input
Record last updated
CVSS score
Low on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 41% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in the CSS scrubber in rrrene html_sanitize_ex allows an unauthenticated remote attacker to inject CSS at-rules, including an import of a remote stylesheet, into a page served to other users. HtmlSanitizeEx.Scrubber.CSS.scrub/1 applies its property and value allowlist through a Regex.replace over substrings matching a property: value declaration pattern, so input that does not match that pattern is never inspected and is copied to the output unchanged. @import url(//attacker.example/style.css); survives, while the same URL inside a background: url(...) declaration is removed. Element boundaries are resolved before the scrubber runs, so injected content does not escape the element and no script executes. This issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.4.
Weakness: CWE-74
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- Sanitize with basic_html/1, markdown_html/1 or strip_tags/1, none of which allow elements, or define a custom scrubber that omits it. A Content-Security-Policy style-src directive that permits no external stylesheet origins stops an injected @import from loading, though injected inline rules still apply. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| rrrene | html_sanitize_ex | from 0.3.1 before 1.4.5 | 1.4.5 | CVE Program |
| rrrene | html_sanitize_ex | from 1.5.0-rc.0 before 1.5.4 | 1.5.4 | CVE Program |
| rrrene | html_sanitize_ex | 21f90012eb21aa36f4e3701b7547e12faf0f3c8b | Not documented | CVE Program |
| rrrene | htmlsanitizeex | from 0.3.1 before 1.5.4 | 1.5.4 | NIST NVD |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- EEF CNA record for CVE-2026-68747 (opens in a new tab)patch, related, third party advisory
- Fix commit 0b9f9ad in rrrene/html_sanitize_ex (opens in a new tab)patch
- Fix commit c311a49 in rrrene/html_sanitize_ex (opens in a new tab)patch
- https://github.com/rrrene/html_sanitize_ex/security/advisories/GHSA-87v2-pfhj-r5x7 (opens in a new tab)broken link, related, vendor-advisory
- OSV record EEF-CVE-2026-68747 (opens in a new tab)patch, related, third party advisory
- Introducing commit 21f9001 in rrrene/html_sanitize_ex (opens in a new tab)related