CVE-2021-43785 json
Cross Site Scripting Vulnerability in @joeattardi/emoji-button
published 2021-11-26 4 y ago modified 2026-07-08 4 mo ago also GHSA-f34m-x9pj-62vq , EUVD-2021-2506
- cvss
- 7.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
@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.
Patch / fix
- npm @joeattardi/emoji-button 4.6.2
- emoji_button_project emoji_button 4.6.2
Exploit prediction
1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @joeattardi/emoji-button | <4.6.2 |
4.6.2 |
Affected products
- joeattardi emoji-button
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16
web, patch, third-party-advisory
-
github.com
/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e
web, patch, third-party-advisory
-
github.com
/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-43785
advisory
-
github.com
/joeattardi/emoji-button
package
Sources
- CVE List CVE-2021-43785
- GitHub Advisory GHSA-f34m-x9pj-62vq
- NVD CVE-2021-43785
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.