CVE-2021-43785
JavaScript vulnerability analysis and mitigation

Overview

@joeattardi/emoji-button, a Vanilla JavaScript emoji picker component, was found to contain a Cross-Site Scripting (XSS) vulnerability identified as CVE-2021-43785. The vulnerability was discovered on November 24, 2021, and disclosed on November 26, 2021. The affected versions are those prior to 4.6.2, where malicious code could be executed through two attack vectors (GitHub Advisory).

Technical details

The vulnerability stems from improper input sanitization in two specific areas: custom emoji URLs and i18n strings. In both cases, attackers could craft values that would allow the insertion of malicious script tags into the page, leading to arbitrary code execution. The vulnerability received a CVSS v3.1 base score of 6.1 (MEDIUM) from NIST and 7.6 (HIGH) from GitHub, with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary JavaScript code in the context of the user's browser session. This could potentially lead to theft of sensitive information, session hijacking, or other malicious actions within the scope of the affected web application (GitHub Lab).

Mitigation and workarounds

The vulnerability was patched in version 4.6.2 of @joeattardi/emoji-button. The fix involves proper escaping of strings that are inserted into the HTML document. Users are strongly advised to upgrade to version 4.6.2 or later, as there are no alternative workarounds available (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management