XSS in Htmlsanitizer Project
CVE-2026-25543
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. Prior to versions 9.0.892 and 9.1.893-beta, if the template tag is allowed, its contents are not sanitized. The template tag is a special tag that does not usually render its contents, unless the shadowrootmode attribute is set to open or closed. This issue has been patched in versions 9.0.892 and 9.1.893-beta.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.003, 20.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Htmlsanitizer Project
- Mganss Htmlsanitizer — versions < 9.0.892, < 9.1.893-beta
Weakness classification (CWE)
References
- https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f (Patch, Mitigation, Vendor Advisory)
- https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81 (Patch)
- https://www.nuget.org/packages/HtmlSanitizer/9.0.892 (Product, Release Notes)
- https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta (Product, Release Notes)