Skip to main content
← All vulnerabilities
CVE-2016-10547GHSA-F7PH-P5RV-PHW2

Nunjucks is a full featured templating engine for JavaScript.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.4.3
None on Exploit-DB, Metasploit or GitHub

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • HackerOne nunjucks node module

    through 2.4.2

  • nunjucksnpm

    fixed in 2.4.3

References 3

GitHub · mozilla/nunjucks

nodesecurity.io

GitHub · matt-/nunjucks_test