{"cve":"CVE-2021-43785","nvd":{"published":"2021-11-26T19:15:08.077","modified":"2026-06-17T04:11:26.113","status":"Modified","description":"@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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16","https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e","https://github.com/joeattardi/emoji-button/security/advisories/GHSA-f34m-x9pj-62vq","https://github.com/joeattardi/emoji-button/commit/05970c09180cd27fff493e998ac5bf0468b1bb16","https://github.com/joeattardi/emoji-button/commit/fe54bef107eb3f74873a4018f2ff49fa124c6a2e"],"products":["emoji_button_project:emoji_button"],"source":"nvd","synced_at":"2026-10-19T21:25:41.256909649+00:00"},"epss":{"cve":"CVE-2021-43785","score":0.01047,"percentile":0.64224,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f34m-x9pj-62vq","url":"https://osv.dev/vulnerability/GHSA-f34m-x9pj-62vq","summary":"Cross-Site Scripting Vulnerability in @joeattardi/emoji-button","modified":"2026-07-08T06:27:44.662091967Z","packages":[{"ecosystem":"npm","name":"@joeattardi/emoji-button","purl":"pkg:npm/%40joeattardi/emoji-button","ranges":["<4.6.2"],"fixed":["4.6.2"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}