Live threats

All CVEs / Mozilla

CVE-2016-10547Mozilla Nunjucks

Medium 6.1 No auth needed

Priority
52
CVSS 3.0
6.1
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
No
Published
May 31, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Nunjucks.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm nunjucks < 2.4.3 2.4.3 npm install nunjucks@2.4.3

Per OSV / GitHub Advisories (GHSA-f7ph-p5rv-phw2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mozillanunjucks≤ 2.4.2

Official sources

References

Links published by the sources. Open them with care.