{"id":"CVE-2026-25543","published":"2026-02-04T21:45:25Z","modified":"2026-02-05T18:24:09Z","title":"HtmlSanitizer has a bypass via template tag","vendor":"mganss","product":"HtmlSanitizer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00274,"percentile":0.2022,"provenance":"source"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81","tags":["x_refsource_MISC"]},{"url":"https://www.nuget.org/packages/HtmlSanitizer/9.0.892","tags":["x_refsource_MISC"]},{"url":"https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.04},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"mganss","affectedVersions":[{"vendor":"mganss","product":"HtmlSanitizer","versions":["< 9.0.892","< 9.1.893-beta"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-05T18:24:02.525697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"HtmlSanitizer","vulnerableRanges":["<9.0.892",">=9.1.878-beta, <9.1.893-beta"],"patched":["9.0.892","9.1.893-beta"],"from":["GHSA-j92c-7v7g-gj3f"],"provenance":"source"}],"summary":{"text":"HtmlSanitizer, a .NET library for cleaning HTML from XSS-enabling constructs, fails to sanitize the contents of the template tag when that tag is allowed, which affects versions before 9.0.892 and 9.1.893-beta. An attacker who can supply HTML to be sanitized can exploit this over the network without authentication or user interaction, provided the template tag is on the allowlist, since its contents are then passed through unsanitized.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:25Z"},"euvd":{"id":"EUVD-2026-5328","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26293","published":"2021-01-04","fixed":"5.0.372","kev":false},{"cve":"CVE-2023-44390","published":"2023-10-05","fixed":"8.1.722-beta","kev":false},{"cve":"CVE-2026-25543","published":"2026-02-04","fixed":"9.1.893-beta","kev":false},{"cve":"CVE-2026-102529","published":"2026-11-17","fixed":"9.1.968-beta","kev":false,"link":{"from":"CVE-2026-25543","to":"CVE-2026-102529","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:HtmlSanitizer","fromFixed":"9.0.892","toFixed":"9.0.967","daysApart":286},{"kind":"same-code","provenance":"machine","files":["src/HtmlSanitizer/HtmlSanitizer.cs"],"commits":["https://github.com/mganss/HtmlSanitizer/commit/6198e0494f96707171bf606689949d5360f7e4c5","https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81"],"basis":"shared file"}]}}],"package":"NuGet:HtmlSanitizer"}}