Lucene search

K
nodejsMatias P. BruttiNODEJS:61
HistoryDec 14, 2015 - 4:51 p.m.

Cross-Site Scripting

2015-12-1416:51:56
Matias P. Brutti
www.npmjs.com
141

0.001 Low

EPSS

Percentile

49.0%

Overview

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 />

Input:
{ 'foo' : 'test.com onload=alert(1)'}

Rendered result:
<a href />

Recommendation

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

References

CPENameOperatorVersion
handlebarslt4.0.0

0.001 Low

EPSS

Percentile

49.0%