CVE-2020-26293
Possible XSS bypass if style tag is allowed
Description
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.
INFO
Published Date :
Jan. 4, 2021, 7:15 p.m.
Last Modified :
Nov. 21, 2024, 5:19 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | 
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2020-26293.
                                        
| URL | Resource | 
|---|---|
| https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8 | Patch Third Party Advisory | 
| https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372 | Release Notes Third Party Advisory | 
| https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv | Third Party Advisory | 
| https://www.nuget.org/packages/HtmlSanitizer/ | Product Third Party Advisory | 
| https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8 | Patch Third Party Advisory | 
| https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372 | Release Notes Third Party Advisory | 
| https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv | Third Party Advisory | 
| https://www.nuget.org/packages/HtmlSanitizer/ | Product Third Party Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2020-26293 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2020-26293
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2020-26293 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2020-26293 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8 Added Reference https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372 Added Reference https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv Added Reference https://www.nuget.org/packages/HtmlSanitizer/ 
- 
                            CVE Modified by [email protected]May. 14, 2024 Action Type Old Value New Value 
- 
                            Initial Analysis by [email protected]Jan. 07, 2021 Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:P/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8 No Types Assigned https://github.com/mganss/HtmlSanitizer/commit/a3a7602a44d4155d51ec0fbbedc2a49e9c7e2eb8 Patch, Third Party Advisory Changed Reference Type https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372 No Types Assigned https://github.com/mganss/HtmlSanitizer/releases/tag/v5.0.372 Release Notes, Third Party Advisory Changed Reference Type https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv No Types Assigned https://github.com/mganss/HtmlSanitizer/security/advisories/GHSA-8j9v-h2vp-2hhv Third Party Advisory Changed Reference Type https://www.nuget.org/packages/HtmlSanitizer/ No Types Assigned https://www.nuget.org/packages/HtmlSanitizer/ Product, Third Party Advisory Added CWE NIST CWE-79 Added CPE Configuration OR *cpe:2.3:a:htmlsanitizer_project:htmlsanitizer:*:*:*:*:*:*:*:* versions up to (excluding) 5.0.372 
Vulnerability Scoring Details
Base CVSS Score: 6.1
Base CVSS Score: 4.3
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.34 }} 0.04%
score
0.53999
percentile
 
                         
                         
                         
                                             
                                            