CVE-2016-1000231: Cross-site Scripting in npm emojione
CVE-2016-1000231 is a cross-site scripting vulnerability in versions of the npm emojione package before 1.3.1. The package's toShort(), shortnameToImage(), unicodeToImage(), and toImage() conversion functions can process attacker-controlled input in a manner that permits injection of executable HTML or JavaScript when the resulting output is rendered by a web application.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can execute arbitrary JavaScript in the browser of a victim using an application that renders affected emojione conversion output. Consequences can include theft of session material accessible to JavaScript, unauthorized actions in the victim's authenticated session, manipulation of rendered content, and access to other same-origin data available to the application.
Mitigation
If you can’t patch tonight, do this now.
Do not pass untrusted, user-controlled input to toShort(), shortnameToImage(), unicodeToImage(), or toImage(). Validate untrusted input and apply output encoding appropriate to the rendering context before inserting conversion output into HTML.
Remediation
Patch, then assume compromise.
Upgrade the npm emojione package to version 1.3.1 or later.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2016-1000231 exploited in the wild?
- As of Sep 26, 2026, Mallory has no reports of CVE-2016-1000231 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2016-1000231?
- As of Sep 26, 2026, Mallory has found no public exploit for CVE-2016-1000231.
- Is there a patch for CVE-2016-1000231?
- Upgrade the npm emojione package to version 1.3.1 or later.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.