CVE-2026-25543: HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS
CVE-2026-25543 is a medium-severity flaw (CVSS 6.1) affecting htmlsanitizer. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-25543?
htmlsanitizer: upgrade to 9.0.892, 9.1.893. Exact commands for each OS are on this page.
Is CVE-2026-25543 being exploited?
CVE-2026-25543 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-25543 affect?
CVE-2026-25543 affects htmlsanitizer. Severity is medium (CVSS 6.1). 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
How urgent is CVE-2026-25543?
Priority 26/100. No elevated risk signals yet.