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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @joeattardi/emoji-button | 4.6.2 | GHSA-f34m-x9pj-62vq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq x_refsource_CONFIRM
- https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16 x_refsource_MISC
- https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e x_refsource_MISC