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.
Advisories
Source ID Title
EUVD EUVD EUVD-2018-0746 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.
Github GHSA Github GHSA GHSA-f7ph-p5rv-phw2 Cross-Site Scripting in nunjucks
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: hackerone

Published:

Updated: 2024-09-16T16:43:50.537Z

Reserved: 2017-10-29T00:00:00

Link: CVE-2016-10547

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2018-05-31T20:29:01.737

Modified: 2024-11-21T02:44:14.427

Link: CVE-2016-10547

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses