{"id":"CVE-2020-26293","aliases":["GHSA-8j9v-h2vp-2hhv"],"url":"https://o3.security/vulnerability/CVE-2020-26293","summary":"XSS in HtmlSanitizer","details":"### Impact\n\nIf you have explicitly allowed the `<style>` tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the `<style>` tag so there is no risk if you have not explicitly allowed the `<style>` tag.\n\n### Patches\n\nThe problem has been fixed in version 5.0.372.\n\n### Workarounds\n\nRemove the `<style>` tag from the set of allowed tags.\n\n### For more information\n\nIf you have any questions or comments about this advisory open an issue in https://github.com/mganss/HtmlSanitizer\n\n### Credits\n\nThis issue was discovered by Michal Bentkowski of Securitum.","published":"2021-01-04T19:15:14.970Z","modified":"2026-10-20T10:52:58.038027881Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00997,"percentile":0.59612,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"NuGet","name":"HtmlSanitizer","fixedVersion":"5.0.372"}],"fix":{"url":"https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8","label":"mganss/HtmlSanitizer@a3a7602"},"references":[{"type":"ADVISORY","url":"https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372"},{"type":"ADVISORY","url":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv"},{"type":"ADVISORY","url":"https://www.nuget.org/packages/HtmlSanitizer/"},{"type":"FIX","url":"https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-26293"},{"type":"WEB","url":"https://www.nuget.org/packages/HtmlSanitizer"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:52:58.038027881Z"}}