Skip to content
OpenAdvisories
Medium CVE-2016-10547 EUVD-2018-0746GHSA-f7ph-p5rv-phw2

Cross-Site Scripting in nunjucks

Published May 31, 2018 · Updated Sep 16, 2024 · Assigned by hackerone

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.

Affected products

VendorProductAffectedFixed
HackerOne nunjucks node module <=2.4.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nunjucks < 2.4.3 2.4.3 GHSA-f7ph-p5rv-phw2

References