CVE-2021-43785
Emoji Button Project Emoji Button vulnerability
@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 products
Emoji Button. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Emoji Button Project Emoji Button runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16 · Patch
- github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e · Patch
- github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-43785
- cve.org/CVERecord?id=CVE-2021-43785
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.