emojione@1.2.4 vulnerabilities

EmojiOne is a complete set of emojis designed for the web. It includes libraries to easily convert unicode characters to shortnames (:smile:) and shortnames to our custom emoji images. PNG formats provided for the emoji images.

Direct Vulnerabilities

Known vulnerabilities in the emojione package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Cross-site Scripting (XSS)

emojione is a complete set of emojis designed for the web. It includes libraries to easily convert unicode characters to shortnames (:smile:) and shortnames to our custom emoji images. PNG formats provided for the emoji images.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS). While this package doesn't control this decision, emoji shortcodes are typically provided by users as part of some interaction or comment, and often persist on the page. Therefore, sanitizing them to prevent scripts is critical.

While emojione does sanitize passed in shortcodes before echoing back the resulting values, a clever sequence of encoded values will still allow attackers to inject scripts into the result. As a result, attacker can perform a Cross-site Scripting (XSS) attack whenever the output of emojione is passed into the page output.

How to fix Cross-site Scripting (XSS)?

Upgrade emojione to version 1.3.1 or higher.

<1.3.1