CVE-2015-8861
mediumpriority · track · 25EPSS 0.026 · 85 %ileEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
- handlebars.js project handlebars.js< 4.0.0nvdUScpe:2.3:a:handlebars.js_project:handlebars.js:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-9prh-257w-9277Cross-Site Scripting in handlebars2018-10-23ghsa · osvUS
Versions of `handlebars` prior to 4.0.0 are affected by a cross-site scripting vulnerability when attributes in handlebar templates are not quoted. ## Proof of Concept Template: ```<a href={{foo}}/>``` Input: ```{ 'foo' : 'test.com onload=alert(1)'}``` Rendered result: ```<a href=test.com onload=alert(1)/>``` ## Recommendation Update to version 4.0.0 or later. Alternatively, ensure that all attributes in handlebars templates are encapsulated with quotes.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- http://www.openwall.com/lists/oss-security/2016/04/20/11cnnvd
- https://nodesecurity.io/advisories/61Patchcnnvd
- https://www.securityfocus.com/bid/96434cnnvd
- https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings/cnnvd
- https://www.tenable.com/security/tns-2016-18cnnvd
- http://www.openwall.com/lists/oss-security/2016/04/20/11enisa_euvd
- http://www.securityfocus.com/bid/96434enisa_euvd
- https://www.sourceclear.com/blog/handlebars_vulnerability_research_findings/enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan