Vulnerability · Published Nov 26, 2021 · Assigned by GitHub_M

CVE-2021-43785Cross Site Scripting Vulnerability in @joeattardi/emoji-button

High 7.6

In plain English

A high-severity cross-site scripting in emoji-button from joeattardi. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.6High
Exploit odds (30 days)1.0%top 35.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

@joeattardi/emoji-button is a Vanilla JavaScript emoji picker component. In affected versions there are two vectors for XSS attacks: a URL for a custom emoji, and an i18n string. In both of these cases, a value can be crafted such that it can insert a `script` tag into the page and execute malicious code.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npm@joeattardi/emoji-button4.6.2GHSA-f34m-x9pj-62vq

Affected products (as reported)

VendorProductVersions
joeattardi emoji-button < 4.6.2

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L

References