CVE-2015-8862 Cross-Site Scripting in mustache
Remote attackers can execute arbitrary scripts via unquoted attributes in mustache templates, affecting Node.js applications using this library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2015-8862?
CVE-2015-8862 is a medium-severity cross-site scripting vulnerability in n/a, published on 23 Jan 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
mustache package before 2.2.1 for Node.js allows remote attackers to conduct cross-site scripting (XSS) attacks by leveraging a template with an attribute that is not quoted.
Weakness: CWE-79
Which versions are affected by CVE-2015-8862?
2 open source packages ship an affected version, including mustache. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mustache npm | All versions | 2.2.1 |
mustache npm | All versions | 2.2.1 |
Products include Mustache.js Project Mustache.js.
How do I fix CVE-2015-8862?
Upgrade mustache to 2.2.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2015-8862 being exploited?
There is no known exploitation of CVE-2015-8862 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2015-8862, GHSA-w3w8-37jv-2c58.