{"id":"CVE-2021-43785","details":"@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.","aliases":["GHSA-f34m-x9pj-62vq"],"modified":"2026-08-27T08:15:13.625758Z","published":"2021-11-26T19:15:08.077Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/joeattardi/picmo","events":[{"introduced":"0"},{"fixed":"ef8ac84e19ff7f76c955882f7dfe2acc794d1fdb"},{"fixed":"05970c09180cd27fff493e998ac5bf0468b1bb16"},{"fixed":"fe54bef107eb3f74873a4018f2ff49fa124c6a2e"}],"database_specific":{"cpe":"cpe:2.3:a:emoji_button_project:emoji_button:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"4.6.2"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["v4.6.1","v4.6.0","v4.5.1","v4.5.0","v4.4.0","v4.3.0","v4.2.0","v4.1.0","v4.0.4","v4.0.3","v4.0.2","v4.0.1","v4.0.0","v3.1.1","v3.1.0","v3.0.3","v3.0.2","v3.0.1","v3.0.0","v2.12.1","v2.12.0","v2.11.1","v2.11.0","v2.10.0","v2.9.4","v2.9.3","v2.9.2","v2.9.1","v2.9.0","v2.8.3","v2.8.2","v2.8.1","v2.8.0","v2.7.3","v2.7.2","v2.7.1","v2.7.0","v2.6.1","v2.6.0","v2.5.4","v2.5.3","v2.5.2","v2.5.1","v2.5.0","v2.4.0","v2.3.0","2.2.6","2.2.5","2.2.4","2.2.3","2.2.2","2.2.1","2.2.0","2.1.2","2.1.1","2.1.0","2.0.0","1.0.1","1.0.0","0.7.0","0.6.0","0.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-43785.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}