XSS in Emoji Button Project
CVE-2021-43785
@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.
Vulnerability class: XSS (Cross-Site Scripting)
EPSS: 0.010 (59.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L.
Affected products
- Emoji_button_project Emoji_button
- Joeattardi Emoji-button — versions < 4.6.2
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2021-43785?
- CVE-2021-43785 is a high-severity vulnerability in Emoji Button Project, classified under Cross-site Scripting. CVSS score: 7.6/10. Published 2021-11-26.
- How severe is CVE-2021-43785?
- High severity. CVSS v3 base score is 7.6 out of 10.