Medium severity6.1NVD Advisory· Published Jan 4, 2021· Updated Jun 17, 2026
CVE-2020-26293
CVE-2020-26293
Description
HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. In HtmlSanitizer before version 5.0.372, there is a possible XSS bypass if style tag is allowed. If you have explicitly allowed the ` tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the tag so there is no risk if you have not explicitly allowed the ` tag. The problem has been fixed in version 5.0.372.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
HtmlSanitizerNuGet | < 5.0.372 | 5.0.372 |
Affected products
2- Range: < 5.0.372
Patches
Vulnerability mechanics
References
7- github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8nvdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-8j9v-h2vp-2hhvghsaADVISORY
- github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372nvdRelease NotesThird Party AdvisoryWEB
- github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhvnvdThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2020-26293ghsaADVISORY
- www.nuget.org/packages/HtmlSanitizer/nvdProductThird Party Advisory
- www.nuget.org/packages/HtmlSanitizerghsaWEB
News mentions
0No linked articles in our index yet.