Cross-site Scripting (XSS) Affecting emojione package, versions [,1.3.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-EMOJIONE-60148
  • published25 Jul 2016
  • disclosed25 Jul 2016
  • creditAndrea Giammarchi

Introduced: 25 Jul 2016

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade emojione to at least version 1.3.1.

Overview

emojione is a module supporting an open list of emojis, replacing shortcodes with the corresponding image.

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.

Details

<>

CVSS Scores

version 3.1