NetSight
medium6.1

CVE-2016-10547

Cross-Site Scripting in nunjucks

Impact

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. ```javascript name[]=<script>alert(1)</script> ``` A full PoC is available in the references section. ## Recommendation Update to version 2.4.3 or later.

Affected packages

EcosystemPackageAffectedFixed in
npmnunjucks< 2.4.32.4.3

Affected products

VendorProductAffected versions
MozillaNunjucks
through 2.4.2

Weakness classification

References