Medium
Security advisory
@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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-43785
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:00 UTC · Revision 1
Source evidence
@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.
osv:CVE-2021-43785
Complete source record
{
"id": "52887a82cf22b29bb008c94398196b20dd9509cdb3e41b6ab206c10c21ce0e3b",
"url": "https://osv.dev/vulnerability/CVE-2021-43785",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-43785",
"summary": "@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.",
"evidence": "osv:CVE-2021-43785",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-43785",
"aliases": [
"CVE-2021-43785",
"GHSA-f34m-x9pj-62vq"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/joeattardi/picmo",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ef8ac84e19ff7f76c955882f7dfe2acc794d1fdb"
},
{
"fixed": "05970c09180cd27fff493e998ac5bf0468b1bb16"
},
{
"fixed": "fe54bef107eb3f74873a4018f2ff49fa124c6a2e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:emoji_button_project:emoji_button:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.6.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "05970c09180cd27fff493e998ac5bf0468b1bb16"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "fe54bef107eb3f74873a4018f2ff49fa124c6a2e"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"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"
}
}
],
"modified": "2026-10-20T10:55:03.529099552Z",
"provider": "osv",
"references": [
"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"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-43785",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386807,
"published_at": "2021-11-26T19:15:08.077+00:00"
}