CVE-2026-102529
JSON

7.5high

HtmlSanitizer: CSS Removal DoS

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.48% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-464h-4j8h-q5mf

Description

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

Product or packageVersionsReported by
mganss HtmlSanitizer< 9.0.967, >= 9.1.878-beta, < 9.1.968-betaCVE List
HtmlSanitizer (NuGet)before 9.0.967, from 9.1.878-beta before 9.1.968-betaGitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-407

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

An unauthenticated request can occupy one synchronous application worker for seconds. Concurrent requests add CPU cost and can keep all workers busy, sustaining denial of service without user interaction.

Patches

The issue has been patched in versions 9.0.967 and 9.1.968-beta.

Workarounds

Disallow the style attribute.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-102529 changed 2026-11-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-464h-4j8h-q5mf changed 2026-11-19CC-BY-4.0
NVDCVE-2026-102529 changed 2026-11-18Public domain