CVE-2016-10547 json
Cross-Site Scripting in nunjucks
published 2018-05-31 8 y ago modified 2026-06-17 4 mo ago also GHSA-f7ph-p5rv-phw2 , EUVD-2018-0746
- cvss
- 6.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm nunjucks 2.4.3
Exploit prediction
1.39% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/mozilla/nunjucks/issues/835 referenced PoC, tagged "exploit" by a source, unverified
- nodesecurity.io https://nodesecurity.io/advisories/147 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/matt-/nunjucks_test referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | nunjucks | <2.4.3 |
2.4.3 |
Affected products
- HackerOne nunjucks node module
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/mozilla/nunjucks/issues/835
web, exploit, third-party-advisory
-
nodesecurity.io
/advisories/147
exploit, third-party-advisory
-
github.com
/matt-/nunjucks_test
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2016-10547
advisory
-
github.com
/advisories/GHSA-f7ph-p5rv-phw2
advisory
-
npmjs.com
/advisories/147
web
Sources
- CVE List CVE-2016-10547
- GitHub Advisory GHSA-f7ph-p5rv-phw2
- NVD CVE-2016-10547
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.