Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. HtmlSanitizer
  4. ›
  5. CVE-2020-26293

CVE-2020-26293: Cross-site Scripting

January 4, 2021 (updated January 7, 2021)

HtmlSanitizer is a .NET library for cleaning HTML fragments and documents from constructs that can lead to XSS attacks. In HtmlSanitizer, 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2020-26293

Code Behaviors & Features

Detect and mitigate CVE-2020-26293 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.0.372

Fixed versions

  • 5.0.372

Solution

Upgrade to version 5.0.372 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

nuget/HtmlSanitizer/CVE-2020-26293.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:13 +0000.