← Back to CVEs
CVE-2026-25543
MEDIUM6.1
Description
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.
CVE Details
CVSS v3.1 Score6.1
SeverityMEDIUM
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionREQUIRED
Published2/4/2026
Last Modified2/24/2026
Sourcenvd
Honeypot Sightings0
Affected Products
htmlsanitizer_project:htmlsanitizer
Weaknesses (CWE)
CWE-116CWE-79
References
https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81(security-advisories@github.com)
https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f(security-advisories@github.com)
https://www.nuget.org/packages/HtmlSanitizer/9.0.892(security-advisories@github.com)
https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta(security-advisories@github.com)
IOC Correlations
No correlations recorded
This product uses data from the NVD API but is not endorsed or certified by the NVD.