CVE-2015-8861

MEDIUM6.1EPSS 0.32%

Cross-Site Scripting in handlebars

Published: 10/23/2018Modified: 2/4/2026
Also known as:GHSA-9prh-257w-9277CGA-vph8-6q2p-p5ggDEBIAN-CVE-2015-8861

Description

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.

Affected packages (2)

CVSS scores

SourceVersionSeverityVector
osvCVSS 3.1MEDIUM6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References (11)