{"id":"GHSA-f34m-x9pj-62vq","revision":"bf8c833ce3f94600b46e56c275071db9","records":[{"revision":"bf8c833ce3f94600b46e56c275071db9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-f34m-x9pj-62vq","aliases":["CVE-2021-43785"],"title":"Cross-Site Scripting Vulnerability in @joeattardi/emoji-button","description":"### 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.","state":0,"publishedAt":"2021-12-01T18:29:02+00:00","modifiedAt":"2026-07-08T06:27:44.662092+00:00","affected":[{"ecosystem":"npm","name":"@joeattardi/emoji-button","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"4.6.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq","https://nvd.nist.gov/vuln/detail/CVE-2021-43785","https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16","https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e","https://github.com/joeattardi/emoji-button"],"sourceUrl":"https://github.com/advisories/GHSA-f34m-x9pj-62vq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f34m-x9pj-62vq","identifiers":["GHSA-f34m-x9pj-62vq","CVE-2021-43785"]},"retained":false,"historicalAffected":[]}],"coverage":[]}