handlebars
Affected
- introduced
0, fixed4.0.0(semver)
Fixed versions
4.0.0
Fix
- Fixed version
4.0.0npm install [email protected]
Advisory
Also known as: CVE-2015-8861
Cross-Site Scripting in handlebars
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:
```{ '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.Medium Basis: The source's own band: MODERATE
0, fixed 4.0.0 (semver)4.0.0
4.0.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0