# CVE-2020-26293: XSS in HtmlSanitizer

Source: https://junglewise.ai/threats/cve-2020-26293-xss-in-htmlsanitizer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-01-04  
License: CC BY 4.0 with a link back

CVE-2020-26293 · Severity: low · CVSS 3.1 · Published 2021-01-04

XSS in HtmlSanitizer

Technologies: [HtmlSanitizer (NuGet)](https://junglewise.ai/threats/technologies/nuget-htmlsanitizer). Vendors: [NuGet](https://junglewise.ai/threats/vendors/nuget).

## Quick answers

**Is CVE-2020-26293 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-26293 being exploited in the wild.

**How severe is CVE-2020-26293?** Low severity, with a CVSS score of 3.1, published 4 January 2021.

**Which products and versions are affected?** HtmlSanitizer (NuGet) ECOSYSTEM:introduced=0,fixed=5.0.372.

**Is there a fix for CVE-2020-26293?** Yes. HtmlSanitizer (NuGet): upgrade to 5.0.372 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-26293?** Check whether you run HtmlSanitizer (NuGet) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- HtmlSanitizer (NuGet): upgrade to 5.0.372 or later

  ```sh
  dotnet add package HtmlSanitizer --version 5.0.372
  ```


## Affected products

- HtmlSanitizer (NuGet) ECOSYSTEM:introduced=0,fixed=5.0.372

## Identifiers

- CVE-2020-26293
- GHSA-8j9v-h2vp-2hhv

## Related threats

- [HtmlSanitizer has a bypass via template tag](https://junglewise.ai/threats/cve-2026-25543-htmlsanitizer-has-a-bypass-via-template-tag)
- [HtmlSanitizer vulnerable to Cross-site Scripting in Foreign Content](https://junglewise.ai/threats/cve-2023-44390-htmlsanitizer-vulnerable-to-cross-site-scripting-in-foreign)
