XSS Vulnerability in HtmlSanitizer Library by Mganss
CVE-2026-25543
6.3MEDIUM
What is CVE-2026-25543?
The HtmlSanitizer library, a .NET tool designed for cleaning HTML fragments and documents, has a vulnerability that allows for potential XSS attacks if the template tag is permitted without proper sanitization. Prior to versions 9.0.892 and 9.1.893-beta, the contents of the template tag were not sanitized, creating a risk when the shadowrootmode attribute was set to open or closed. Users are strongly encouraged to upgrade to the patched versions to secure their applications.
Affected Version(s)
HtmlSanitizer < 9.0.892 < 9.0.892
HtmlSanitizer < 9.1.893-beta < 9.1.893-beta
