nunjucks
Affected
- introduced
0, fixed2.4.3(semver)
Fixed versions
2.4.3
Fix
- Fixed version
2.4.3npm install [email protected]
Advisory
Also known as: CVE-2016-10547
Cross-Site Scripting in nunjucks
Affected versions of nunjucks do not properly escape specially structured user input in template vars when in auto-escape mode, resulting in a cross-site scripting vulnerability.
Proof of Concept
By using an array for the keys in a template var, escaping is bypassed.
name[]=<script>alert(1)</script>
A full PoC is available in the references section.
Recommendation
Update to version 2.4.3 or later.
Medium Basis: The source's own band: MODERATE
0, fixed 2.4.3 (semver)2.4.3
2.4.3npm 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