ADVISORIES

GitHub Advisory Database

GHSA-9prh-257w-9277

Cross-Site Scripting in handlebars

Moderate CVE-2015-8861

Details

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:


Input:

Rendered result:



## Recommendation

Update to version 4.0.0 or later.
Alternatively, ensure that all attributes in handlebars templates are encapsulated with quotes.

Affected packages

EcosystemPackageAffected versions
npmhandlebars
All versions before 4.0.0 (fixed in 4.0.0)

References