CVE-2026-102529: HtmlSanitizer: CSS Removal DoS

Published Nov 17, 2026
·
Updated

HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. Prior to 9.0.967 and 9.1.968-beta, HtmlSanitizer CSS style-declaration sanitization can process an attacker-controlled style attribute with quadratic cost because SanitizeStyleDeclaration repeatedly causes the complete declaration to be serialized while removing disallowed CSS properties. One unauthenticated request can occupy a synchronous application worker for seconds, and concurrent requests can saturate all workers and sustain denial of service. This issue is fixed in versions 9.0.967 and 9.1.968-beta.

Affected Software

1 affected component
nuget/HtmlSanitizer<9.0.967, <9.1.968-beta

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.0.967
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.1.968-beta

Event History

Nov 17, 2026
CVE Published
via MITRE·08:41 PM
Data Sourced
via MITRE·08:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this denial of service?

Applications using affected HtmlSanitizer versions are exposed when they sanitize attacker-controlled HTML containing style attributes. Internet-facing endpoints are particularly at risk because exploitation requires only an unauthenticated request.

2

What does an attacker need to do to exploit the issue?

An attacker must submit a crafted style attribute containing disallowed CSS properties to code that invokes HtmlSanitizer style-declaration sanitization. No authentication or user interaction is required, and the attack has low complexity.

3

Does exploitation require a vulnerable default setting?

The issue is triggered during CSS style-declaration sanitization while disallowed CSS properties are removed. The provided information does not identify any separate configuration change or non-default setting required for exploitation.

4

What is the impact if the issue is exploited?

A single request can occupy a synchronous application worker for seconds. Concurrent crafted requests can exhaust available workers and sustain a denial of service, without stated confidentiality or integrity impact.

5

Which versions fix the issue?

Upgrade HtmlSanitizer to 9.0.967 or later, or to 9.1.968-beta or later on the 9.1 beta line.

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