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

GMS-2016-71: XSS in autoescape mode

October 17, 2016

Nunjucks has a cross site scripting (XSS) vulnerability in autoescape mode: all template vars should automatically be escaped. By using an array for the keys, it is possible to bypass autoescaping and inject content into the DOM.

References

  • github.com/matt-/nunjucks_test
  • github.com/mozilla/nunjucks/commit/038ba1e29990ca0eeafcf77125f4d9f960723f60
  • github.com/mozilla/nunjucks/issues/835

Code Behaviors & Features

Detect and mitigate GMS-2016-71 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 2.4.2

Fixed versions

  • 2.4.3

Solution

Upgrade to version 2.4.3 or later.

Source file

npm/nunjucks/GMS-2016-71.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:17:05 +0000.