CVE-2016-10547
MEDIUM 6.1CVSS 3.0Cross-Site Scripting in nunjucks
Nunjucks is a full featured templating engine for JavaScript. Versions 2.4.2 and lower have a cross site scripting (XSS) vulnerability in autoescape mode. In autoescape mode, all template vars should automatically be escaped. By using an array for the keys, such as name[]=<script>alert(1)</script>, it is possible to bypass autoescaping and inject content into the DOM.
- Published
- 31 May 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-f7ph-p5rv-phw2
- Sources
- NVDJSONOSV GHSA-f7ph-p5rv-phw2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mozilla | nunjuckscpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:* |
<= 2.4.2 | |
| OSV | npm | nunjucks | < 2.4.3 | 2.4.3 |
References
- https://github.com/matt-/nunjucks_test · Exploit, Third Party Advisory, WEB
- https://github.com/mozilla/nunjucks/issues/835 · Exploit, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/147 · Exploit, Third Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2016-10547 · ADVISORY
- https://github.com/advisories/GHSA-f7ph-p5rv-phw2 · ADVISORY
- https://www.npmjs.com/advisories/147 · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 31 May 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 6 Nov 2018)