CVE Explorer
CVE-2026-25543
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"HtmlSanitizer","vendor":"mganss","versions":[{"status":"affected","version":"< 9.0.892"},{"status":"affected","version":"< 9.1.893-beta"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"NONE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-116","description":"CWE-116: Improper Encoding or Escaping of Output","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81","tags":["x_refsource_MISC"],"url":"https://github.com/mganss/HtmlSanitizer/commit/0ac53dca30ddad963f2b243669a5066933d82b81"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/references/1
{"name":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f","tags":["x_refsource_CONFIRM"],"url":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-j92c-7v7g-gj3f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/references/0
{"name":"https://www.nuget.org/packages/HtmlSanitizer/9.0.892","tags":["x_refsource_MISC"],"url":"https://www.nuget.org/packages/HtmlSanitizer/9.0.892"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/references/2
{"name":"https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta","tags":["x_refsource_MISC"],"url":"https://www.nuget.org/packages/HtmlSanitizer/9.1.893-beta"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:494aa51b2d9ba11ba9d489ca07c477e8397022eb3fc2d3278466a209b7803a34 · sha256:01f0fb2ab87416b1… · /containers/cna/references/3
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.