CVE-2015-8861 Cross-Site Scripting in handlebars
Remote attackers can execute arbitrary scripts via unquoted attributes in Handlebars templates, affecting Node.js applications using the 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-8861?
CVE-2015-8861 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
The handlebars package before 4.0.0 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-8861?
2 open source packages ship an affected version, including handlebars. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
handlebars npm | All versions | 4.0.0 |
handlebars npm | All versions | 4.0.0 |
Products include Handlebars.js Project Handlebars.js.
How do I fix CVE-2015-8861?
Upgrade handlebars to 4.0.0 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-8861 being exploited?
There is no known exploitation of CVE-2015-8861 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as CLSA-2026-1784682992, DEBIAN-CVE-2015-8861, GHSA-9prh-257w-9277.