Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nunjucks
  4. ›
  5. CVE-2016-10547

CVE-2016-10547: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

November 6, 2018 (updated January 8, 2021)

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.

References

  • github.com/advisories/GHSA-f7ph-p5rv-phw2
  • github.com/matt-/nunjucks_test
  • github.com/mozilla/nunjucks/issues/835
  • nodesecurity.io/advisories/147
  • nvd.nist.gov/vuln/detail/CVE-2016-10547
  • www.npmjs.com/advisories/147

Code Behaviors & Features

Detect and mitigate CVE-2016-10547 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.4.3

Fixed versions

  • 2.4.3

Solution

Upgrade to version 2.4.3 or above.

Impact 6.1 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/nunjucks/CVE-2016-10547.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:06 +0000.