Skip to main content
← All vulnerabilities
CVE-2020-26293GHSA-8J9V-H2VP-2HHV

Possible XSS bypass if style tag is allowed

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.0.372
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • mganss HtmlSanitizer

    fixed in 5.0.372

  • HtmlSanitizerNuGet

    fixed in 5.0.372

References 4

GitHub · mganss/HtmlSanitizer

nuget.org