CVE-2026-102529
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.
Weakness
- CWE-407: Inefficient Algorithmic Complexity
Timeline
- 2026-11-17Published by the CNA20:41 UTC
- 2026-11-17Published in NVD21:17 UTC · 35 minutes after the CNA
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| mganss htmlsanitizer |
References
- https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5
- https://github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973
- https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-102529'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-102529'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-102529'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-102529'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).