{"id":"CVE-2021-43785","aliases":["GHSA-f34m-x9pj-62vq"],"url":"https://o3.security/vulnerability/CVE-2021-43785","summary":"Cross-Site Scripting Vulnerability in @joeattardi/emoji-button","details":"### Impact\n\nThere are two vectors for XSS attacks with versions of @joeattardi/emoji-button before 4.6.2:\n\n- A URL for a custom emoji\n- An i18n string\n\nIn both of these cases, a value can be crafted such that it can insert a `script` tag into the page and execute malicious code.\n\n### Patches\n\nThis vulnerability is fixed starting in version 4.6.2. This is resolved by properly escaping strings that are inserted into the HTML document.\n\n### Workarounds\n\nThere is no workaround other than upgrading to a non-vulnerable version.\n\n### Credit\n\nThis issue was discovered by GitHub team member [@erik-krogh (Erik Krogh Kristensen)](https://github.com/erik-krogh) and was reported by the GitHub Security Lab team.","published":"2021-11-26T19:15:08.077Z","modified":"2026-08-27T08:15:13.625758Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.01014,"percentile":0.61582,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@joeattardi/emoji-button","fixedVersion":"4.6.2"}],"fix":{"url":"https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16","label":"joeattardi/emoji-button@05970c0"},"references":[{"type":"ADVISORY","url":"https://github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq"},{"type":"FIX","url":"https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16"},{"type":"FIX","url":"https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43785"},{"type":"PACKAGE","url":"https://github.com/joeattardi/emoji-button"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-27T08:15:13.625758Z"}}