Skip to content
Threat Brief

← All advisories

CVE-2026-68747

Low 2.3No known exploitationFix available

CSS sanitizer allowlist bypass in html_sanitize_ex via non-declaration input

Record last updated

CVSS score

2.3

Low on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.5%

Higher than 41% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

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

VendorProductAffected versionsFixed inPer
rrrenehtml_sanitize_exfrom 0.3.1 before 1.4.51.4.5CVE Program
rrrenehtml_sanitize_exfrom 1.5.0-rc.0 before 1.5.41.5.4CVE Program
rrrenehtml_sanitize_ex21f90012eb21aa36f4e3701b7547e12faf0f3c8bNot documentedCVE Program
rrrenehtmlsanitizeexfrom 0.3.1 before 1.5.41.5.4NIST NVD

Timeline

  1. Disclosure

    CVE record published by EEF

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by NVD (reference tagged Patch)

    Source: NVD (reference tagged Patch) (opens in a new tab)

Vendor guidance and references