CVE-2020-26293

    Dashboard / Vulnerabilities / CVE-2020-26293

    CVE-2020-26293

    Published: 4 Jan 2021Last Modified: 9 Jul 2026

    Summary:

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    v5.0.371
    v5.0.368
    v5.0.367
    v5.0.366
    v5.0.365
    v5.0.364
    v5.0.363
    v5.0.358
    v5.0.355
    v5.0.354
    v5.0.343
    v5.0.342
    v5.0.332
    v5.0.331
    v5.0.328
    v5.0.325
    v5.0.322
    v5.0.319
    v5.0.316
    v5.0.313
    v5.0.310
    v5.0.307
    v5.0.304
    v5.0.303
    v5.0.298
    v5.0.297
    v5.0.296
    v5.0.293
    v5.0.292
    v5.0.291
    v5.0.290
    v5.0.287
    v5.0.283
    v5.0.280
    v5.0.277
    v5.0.274
    v5.0.272
    v5.0.269
    v5.0.266
    v5.0.263
    v5.0.260
    v5.0.257
    v5.0.250
    v5.0.249
    v5.0.248
    v5.0.245
    v5.0.244
    v5.0.239
    v5.0.236
    v5.0.233

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2020-26293 | CVE-DB