CVE-2020-26293

Cross-site Scripting in nuget/HtmlSanitizer

Identifiers

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

Package Slug

nuget/HtmlSanitizer

Vulnerability

Cross-site Scripting

Description

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.

Affected Versions

All versions before 5.0.372

Solution

Upgrade to version 5.0.372 or above.

Last Modified

2021-01-12

source