7.3

CVE-2020-4054: Cross-site Scripting in Sanitize

Modified
AliasesUBUNTU-CVE-2020-4054USN-4543-1DEBIAN-CVE-2020-4054
Published 16-06-2020Last modified 04-08-2024

Vulnerability summary

CVE-2020-4054 is a high (CVSS 7.3) vulnerability in rgrove sanitize. EPSS estimates a 1.92% chance of exploitation in the next 30 days, higher than 80.5% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.3/10
010
High · v3.1 (CVE.org)
EPSS score
1.92%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 16-06-2020
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.92%

Chance of exploitation in the next 30 days

Percentile

81%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.92% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • ruby-sanitize< 4.6.6-2.1 | < 4.6.6-2.1~deb10u1
Rgrove1 product
RubyGems1 product
  • sanitize≥ 3.0.0, < 5.2.1
Sanitize_project1 product
Ubuntu1 product
  • ruby-sanitizeAll versions (No fix recorded) | < 4.6.6-2.1~0.20.04.1

5 vendors · 5 products

References

13 links
Show all 13 references