{"id":"EUVD-2021-0498","revision":"76c353ee650e4f359eaecd803e1b392f","records":[{"revision":"76c353ee650e4f359eaecd803e1b392f","observedAt":"2026-11-01T17:03:03.377+00:00","statement":{"source":"euvd","id":"EUVD-2021-0498","aliases":["CVE-2020-26293","GHSA-8j9v-h2vp-2hhv"],"title":"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 …","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 `<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. The problem has been fixed in version 5.0.372.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","score":6.1,"severity":null}],"references":["https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv","https://www.nuget.org/packages/HtmlSanitizer/","https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372","https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0498","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jan 4, 2021, 6:20:14 PM","dateUpdated":"Aug 4, 2024, 3:56:03 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-0498","identifiers":["EUVD-2021-0498","CVE-2020-26293","GHSA-8j9v-h2vp-2hhv"]},"retained":false,"historicalAffected":[]}],"coverage":[]}