CVE-2021-43785
MEDIUM 6.1CVSS 3.1Cross-Site Scripting Vulnerability in @joeattardi/emoji-button
@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.
- Published
- 26 Nov 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-f34m-x9pj-62vq
- Sources
- NVDJSONOSV GHSA-f34m-x9pj-62vqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | emoji_button_project | emoji_buttoncpe:2.3:a:emoji_button_project:emoji_button:*:*:*:*:*:node.js:*:* |
< 4.6.2 | 4.6.2 |
| OSV | npm | @joeattardi/emoji-button | < 4.6.2 | 4.6.2 |
References
- https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16 · Patch, Third Party Advisory, WEB
- https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e · Patch, Third Party Advisory, WEB
- https://github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-43785 · ADVISORY
- https://github.com/joeattardi/emoji-button · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 26 Nov 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Dec 2021)