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. Learn more about Dependency Scanning →

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 Wed, 14 May 2025 12:15:57 +0000.