CVE-2016-10547
Cross-Site Scripting in nunjucks
Overview
Description
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.
Source: OX vulnerability database
Severity
6.1 · MEDIUM
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness: CWE-79
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | nunjucks | <2.4.3 | 2.4.3 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/advisories/GHSA-f7ph-p5rv-phw2
- github.com https://github.com/matt-/nunjucks_test
- github.com https://github.com/mozilla/nunjucks/issues/835
- nodesecurity.io https://nodesecurity.io/advisories/147
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2016-10547
- www.npmjs.com https://www.npmjs.com/advisories/147
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.