{"id":"CVE-2026-102529","aliases":["CVE-2026-102529","GHSA-464h-4j8h-q5mf"],"related":[],"kind":"vulnerability","state":"published","title":"HtmlSanitizer: CSS Removal DoS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nAn 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.\n\n### Patches\n\nThe issue has been patched in versions  9.0.967 and 9.1.968-beta.\n\n### Workarounds\n\nDisallow the style attribute.","format":"markdown","source":"ghsa"}],"published":"2026-11-17T20:41:51.531Z","modified":"2026-11-19T21:00:04.601Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-407"],"affected":[{"ranges":[{"version":"< 9.0.967","status":"affected"},{"version":">= 9.1.878-beta, < 9.1.968-beta","status":"affected"}],"vendor":"mganss","product":"HtmlSanitizer","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.0.967"}],"ecosystem":"NuGet","package":"HtmlSanitizer","purl":"pkg:nuget/HtmlSanitizer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.1.878-beta","status":"affected","fixed":"9.1.968-beta"}],"ecosystem":"NuGet","package":"HtmlSanitizer","purl":"pkg:nuget/HtmlSanitizer","source":"ghsa"}],"references":[{"url":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102529","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mganss/HtmlSanitizer","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-18T15:55:13.307Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102529","url":"https://www.cve.org/CVERecord?id=CVE-2026-102529","licence":"CVE Terms of Use","modified":"2026-11-18T15:55:26.052Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-464h-4j8h-q5mf","url":"https://github.com/advisories/GHSA-464h-4j8h-q5mf","licence":"CC-BY-4.0","modified":"2026-11-19T21:00:04.601Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102529","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102529","licence":"Public domain","modified":"2026-11-18T16:17:58.320Z"}],"updatedAt":"2026-11-25T22:59:51.087Z","epss":{"score":0.00484,"percentile":0.43383,"date":"2026-12-01T12:00:22.000Z"}}