CVE-2026-25543
HtmlSanitizer is a .NET library for cleaning HTML fragments and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81
- github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f
- www.nuget.org/packages/HtmlSanitizer/9.0.892
- www.nuget.org/packages/HtmlSanitizer/9.1.893-beta
- developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/template
- github.com/mganss/HtmlSanitizer/releases/tag/v9.0.892
- nvd.nist.gov/vuln/detail/CVE-2026-25543
- github.com/advisories/GHSA-j92c-7v7g-gj3f
- nvd.nist.gov/vuln/detail/CVE-2026-25543
- cve.org/CVERecord?id=CVE-2026-25543
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.