{"id":"CVE-2021-43785","published":"2021-11-26T18:20:11Z","modified":"2024-08-04T04:03:08Z","title":"Cross Site Scripting Vulnerability in @joeattardi/emoji-button","vendor":"joeattardi","product":"emoji-button","tier":"tail","description":{"text":"@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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01047,"percentile":0.65017,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16","tags":["x_refsource_MISC"]},{"url":"https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e","tags":["x_refsource_MISC"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":13.0},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"joeattardi","affectedVersions":[{"vendor":"joeattardi","product":"emoji-button","versions":["< 4.6.2"]}],"affected":[{"ecosystem":"npm","package":"@joeattardi/emoji-button","vulnerableRanges":["<4.6.2"],"patched":["4.6.2"],"from":["GHSA-f34m-x9pj-62vq"],"provenance":"source"}],"summary":{"text":"The @joeattardi/emoji-button emoji picker component, a Vanilla JavaScript library, contains a cross-site scripting flaw in two places: the URL used for a custom emoji and an i18n string. An attacker can craft one of these values so that it injects a script tag into the page and executes malicious code, which requires a user to interact with the affected content and does not require any authentication or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:52Z"},"euvd":{"id":"EUVD-2021-2506","exploited":false,"provenance":"source"}}