CVE-2020-26293CWE-74

Possible XSS bypass if style tag is allowed

Medium · published January 4, 2021

CVSS v3.1
6.1
EPSS
1%
Percentile
62.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.1 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01010 · 62.8th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2021-01-04T18:20Z
EPSS history
Timeline
  • 04 JAN 18:20Z
    Possible XSS bypass if style tag is allowed
    cvelistv5