CVE-2026-102529: HtmlSanitizer Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-464h-4j8h-q5mf
CVSS 7.5
CWE-407
Published
Advisory Summary

CVE-2026-102529 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-407: Inefficient Algorithmic Complexity) affecting HtmlSanitizer libraries in the NuGet ecosystem. The issue involves css removal dos. Remediation is available by upgrading affected packages to version 9.0.967, 9.1.968-beta.

CVE-2026-102529 at a Glance

CVE Identifier CVE-2026-102529
GHSA Identifier GHSA-464h-4j8h-q5mf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-407: Inefficient Algorithmic Complexity
Affected Product HtmlSanitizer
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-102529

To remediate this vulnerability, upgrade all affected HtmlSanitizer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

HtmlSanitizer fixed: 9.0.967
Upgrade HtmlSanitizer to 9.0.967
HtmlSanitizer fixed: 9.1.968-beta
Upgrade HtmlSanitizer to 9.1.968-beta
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for HtmlSanitizer

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-102529, inspect your project dependencies for HtmlSanitizer:

inspect dependencies for HtmlSanitizer

Analyze the terminal output to locate any version of HtmlSanitizer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.0.967), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-407: Inefficient Algorithmic Complexity, where an algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. In HtmlSanitizer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-102529 Affected HtmlSanitizer Versions

2 component(s)
Fixed Versions:
9.0.9679.1.968-beta
Product / Package Ecosystem Affected Versions Fixed Version
HtmlSanitizer
NuGet
< 9.0.967
9.0.967
HtmlSanitizer
NuGet
≥ 9.1.878-beta
< 9.1.968-beta
9.1.968-beta

References

Frequently Asked Questions

What is CVE-2026-102529?
CVE-2026-102529 is a security vulnerability in HtmlSanitizer involving CSS Removal DoS under CWE-407: Inefficient Algorithmic Complexity.
Which HtmlSanitizer versions are affected?
Affected versions include releases prior to 9.0.967, 9.1.968-beta across affected packages: HtmlSanitizer.
What version fixes CVE-2026-102529?
Upgrading to 9.0.967, 9.1.968-beta (or the latest patched release for your respective branch) resolves the vulnerability.
Is HtmlSanitizer affected?
Yes, HtmlSanitizer is affected in releases prior to 9.0.967, 9.1.968-beta. Upgrade your dependency to 9.0.967, 9.1.968-beta or later.
What is the CVSS score of CVE-2026-102529?
CVE-2026-102529 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-102529?
CVE-2026-102529 is classified under CWE-407: Inefficient Algorithmic Complexity (An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.).
How can I check NuGet dependencies for CVE-2026-102529?
Run the dependency tree command: 'inspect dependencies for HtmlSanitizer'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-464h-4j8h-q5mf",
  "modified" : "2026-11-19T20:49:01Z",
  "published" : "2026-11-19T20:49:01Z",
  "aliases" : [ "CVE-2026-102529" ],
  "summary" : "HtmlSanitizer: CSS Removal DoS",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "HtmlSanitizer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "9.0.967"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "HtmlSanitizer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.1.878-beta"
      }, {
        "fixed" : "9.1.968-beta"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-464h-4j8h-q5mf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-102529"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mganss/HtmlSanitizer"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mganss/HtmlSanitizer/releases/tag/v9.1.973"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-407" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T20:49:01Z",
    "nvd_published_at" : "2026-11-17T21:17:36Z"
  }
}