{"id":"EUVD-2021-0498","enisaUuid":"6159e9b8-27af-3146-a6ec-18804e593c8d","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 `\u003cstyle\u003e` tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the `\u003cstyle\u003e` tag so there is no risk if you have not explicitly allowed the `\u003cstyle\u003e` tag. The problem has been fixed in version 5.0.372.","datePublished":"Jan 4, 2021, 6:20:14 PM","dateUpdated":"Aug 4, 2024, 3:56:03 PM","baseScore":6.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","references":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv\nhttps://www.nuget.org/packages/HtmlSanitizer/\nhttps://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372\nhttps://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8\n","aliases":"CVE-2020-26293\nGHSA-8j9v-h2vp-2hhv\n","assigner":"GitHub_M","epss":1.01,"enisaIdProduct":[{"id":"c38d7b70-db2f-3987-bcf9-ad695de2b39b","product":{"name":"HtmlSanitizer","vendor":{"name":"mganss"}},"product_version":"\u003c 5.0.372"}],"enisaIdVendor":[{"id":"e6b061c7-c5e7-3f48-b465-2c89cad02c45","vendor":{"name":"mganss"}}],"enisaIdVulnerability":[{"id":"6ece749d-6583-321f-a2e5-3f0380c8171b","vulnerability":{"id":"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 `\u003cstyle\u003e` tag, an attacker could craft HTML that includes script after passing through the sanitizer. The default settings disallow the `\u003cstyle\u003e` tag so there is no risk if you have not explicitly allowed the `\u003cstyle\u003e` tag. The problem has been fixed in version 5.0.372.","datePublished":"Jan 4, 2021, 6:20:14 PM","dateUpdated":"Aug 4, 2024, 3:56:03 PM","status":"PUBLISHED","baseScore":6.1,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","references":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv\nhttps://www.nuget.org/packages/HtmlSanitizer/\nhttps://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372\nhttps://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8\n","enisa_id":"EUVD-2021-0498\n","assigner":"GitHub_M","epss":1.01,"dataProcessed":"Nov 16, 2026, 7:20:45 AM","vulnerabilityProduct":[{"id":"37e35a0d-2bf2-3964-89d9-6d2e4399aaa1","product":{"name":"HtmlSanitizer","vendor":{"name":"mganss"}},"product_version":"\u003c 5.0.372"}],"vulnerabilityVendor":[{"id":"805727fc-3a45-37ed-8944-c9df3e9dd425","vendor":{"name":"mganss"}}]}},{"id":"b269ac3d-0ae5-3dc8-a8df-a76c9d2bf9d5","vulnerability":{"id":"GHSA-8j9v-h2vp-2hhv","description":"XSS in HtmlSanitizer","datePublished":"Jan 4, 2021, 6:22:11 PM","dateUpdated":"Jan 7, 2021, 10:32:04 PM","baseScore":null,"references":"https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv\nhttps://nvd.nist.gov/vuln/detail/CVE-2020-26293\nhttps://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8\nhttps://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372\nhttps://www.nuget.org/packages/HtmlSanitizer\n","enisa_id":"EUVD-2021-0498\n","aliases":"CVE-2020-26293\nGHSA-8j9v-h2vp-2hhv\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:05:47 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}}],"enisaIdAdvisory":[]}