mustache
Affected
- introduced
0, fixed2.2.1(semver)
Fixed versions
2.2.1
Fix
- Fixed version
2.2.1npm install [email protected]
Advisory
Also known as: CVE-2015-8862
Cross-Site Scripting in mustache
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:
Input:
```{ 'foo' : 'test.com onload=alert(1)'}```
Rendered result:
```<a href=test.com onload=alert(1)/>```
## Recommendation
Update to version 2.2.1 or later.
Alternatively, ensure that all attributes in hmustache templates are encapsulated with quotes.High Basis: The source's own band: HIGH
0, fixed 2.2.1 (semver)2.2.1
2.2.1npm 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