CVE-2016-10547 – nunjucks
Package
Manager: npm
Name: nunjucks
Vulnerable Version: >=0 <2.4.3
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
EPSS: 0.0038 pctl0.58697
Details
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. ```javascript name[]=<script>alert(1)</script> ``` A full PoC is available in the references section. ## Recommendation Update to version 2.4.3 or later.
Metadata
Created: 2018-11-06T23:13:37Z
Modified: 2020-08-31T18:12:27Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-f7ph-p5rv-phw2/GHSA-f7ph-p5rv-phw2.json
CWE IDs: ["CWE-79"]
Alternative ID: GHSA-f7ph-p5rv-phw2
Finding: F008
Auto approve: 1