CVE-2021-43785

Cross Site Scripting Vulnerability in @joeattardi/emoji-button

MEDIUM
6.1
CVSS Score
Published: November 26, 2021 at 06:20 PM UTC
Updated: June 17, 2026 at 04:11 AM UTC
2 products affected across 2 vendorsEmoji ButtonButton Project Emoji Button

Using emoji-button by joeattardi?

Get instant alerts when new vulnerabilities affect emoji-button - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.6.2
Affected range stops below 4.6.2, so it looks safe — our inference, not a vendor statement
v < 4.6.2
Affected range stops below 4.6.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card