U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2020-4054 Detail

Description

In Sanitize (RubyGem sanitize) greater than or equal to 3.0.0 and less than 5.2.1, there is a cross-site scripting vulnerability. When HTML is sanitized using Sanitize's "relaxed" config, or a custom config that allows certain elements, some content in a math or svg element may not be sanitized correctly even if math and svg are not in the allowlist. You are likely to be vulnerable to this issue if you use Sanitize's relaxed config or a custom config that allows one or more of the following HTML elements: iframe, math, noembed, noframes, noscript, plaintext, script, style, svg, xmp. Using carefully crafted input, an attacker may be able to sneak arbitrary HTML through Sanitize, potentially resulting in XSS (cross-site scripting) or other undesired behavior when that HTML is rendered in a browser. This has been fixed in 5.2.1.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
https://github.com/rgrove/sanitize/commit/a11498de9e283cd457b35ee252983662f7452aa9 Patch  Third Party Advisory 
https://github.com/rgrove/sanitize/commit/a11498de9e283cd457b35ee252983662f7452aa9 Patch  Third Party Advisory 
https://github.com/rgrove/sanitize/releases/tag/v5.2.1 Release Notes  Third Party Advisory 
https://github.com/rgrove/sanitize/releases/tag/v5.2.1 Release Notes  Third Party Advisory 
https://github.com/rgrove/sanitize/security/advisories/GHSA-p4x4-rw2p-8j8m Third Party Advisory 
https://github.com/rgrove/sanitize/security/advisories/GHSA-p4x4-rw2p-8j8m Third Party Advisory 
https://usn.ubuntu.com/4543-1/
https://usn.ubuntu.com/4543-1/
https://www.debian.org/security/2020/dsa-4730
https://www.debian.org/security/2020/dsa-4730

Weakness Enumeration

CWE-ID CWE Name Source
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') GitHub, Inc.  

Known Affected Software Configurations Switch to CPE 2.2

CPEs loading, please wait.

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

6 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2020-4054
NVD Published Date:
06/16/2020
NVD Last Modified:
11/21/2024
Source:
GitHub, Inc.