Lucene search

K
osvGoogleOSV:GHSA-W3W8-37JV-2C58
HistoryOct 24, 2017 - 6:33 p.m.

Cross-Site Scripting in mustache

2017-10-2418:33:36
Google
osv.dev
7

EPSS

0.002

Percentile

61.6%

Versions of mustache prior to 2.2.1 are affected by a cross-site scripting vulnerability when attributes in mustache templates are not quoted.

Example

Template:
<a href />

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

Rendered result:
<a href />

Recommendation

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

EPSS

0.002

Percentile

61.6%