CVE-2026-25543

MEDIUM EPSS 15.1%
Published Feb 4, 20265mo ago · Modified Jun 17, 20262w ago
6.3 CVSS 4.0
Medium
Find Similar
Published Feb 4, 2026 5mo ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
6.3
Exploitability
Impact
Vector string
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope X

Threat Intelligence

EPSS Exploit Probability
15.1% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 2

CWE-116
CWE-79 Cross-site Scripting Injection

Affected Products 2

VendorProductVersionRange
htmlsanitizer_projecthtmlsanitizer* <9.0.892
htmlsanitizer_projecthtmlsanitizer*≥9.1.878  –  <9.1.893

References 4

  • github.com https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81
    Patch
  • github.com https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f
    MitigationPatchVendor Advisory
  • nuget.org https://www.nuget.org/packages/HtmlSanitizer/9.0.892
    ProductRelease Notes
  • nuget.org https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta
    ProductRelease Notes

Remediation

  • github.com https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81
    Patch
  • github.com https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f
    MitigationPatchVendor Advisory