Nunjucks XSS in autoescape mode
HackerOne nunjucks node module
At a glance
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 description · CVE List / CNA
System impact
CVSS summary v3.0
- Published:
- Updated:
- EPSS:
- 1.391%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Related CWE
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:HackerOne | nunjucks node module | Affected versions: <=2.4.2 |
| Vendor:mozilla | nunjucks | Affected versions: ≤ 2.4.2 |
| Vendor:npm | nunjucks | Affected versions: < 2.4.3 |
1–3 of 3 · Page 1 of 1
CVSS scores and metrics5
[email protected] · NVD (Primary)Primary6.1 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Changed
Source vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NCVE-2016-10547 · OSV (source-vector)6.1 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Changed
Source vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:Nnvd · Wazuh CTI (cna)6.1 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Required
- Scope
- Changed
Source vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N[email protected] · NVD (Primary)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:Nnvd · Wazuh CTI (cna)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences