Cross-site scripting in HackerOne nunjucks node module
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| HackerOne | nunjucks node module | up to 2.4.2 | — | No fix listed | CNA |
| — | nunjucks (npm) | before 2.4.3 | 2.4.3 | Patch available | GHSA-f7ph-p5rv-phw2 |
- nunjucks node module VendorHackerOne Affected up to 2.4.2 Fixed in — No fix listed CNA
- nunjucks (npm) Vendor— Affected before 2.4.3 Fixed in 2.4.3 Patch available GHSA-f7ph-p5rv-phw2
Remediation
- Fix · GHSA-f7ph-p5rv-phw2 nunjucks (npm) Fixed in 2.4.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2016-10547
- 2026-10-03 Alias added: GHSA-f7ph-p5rv-phw2
References
More Mozilla Nunjucks vulnerabilities
- TI-2023-02010 Nunjucks autoescape bypass leads to cross site scripting CVSS 3.1MEDIUM 6.1
Sources
- CVE-2016-10547 · CVE Program
- CVE-2016-10547 · NVD
- FIRST EPSS
- GHSA-f7ph-p5rv-phw2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences