Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-10547

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[]=`, it is possible to bypass autoescaping and inject content into the DOM.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-10547
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:38 UTC · Revision 1

Source evidence

CVE-2016-10547

core-osv · Original source

Published 31 May 2018, 20:29 UTC

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[]=`, it is possible to bypass autoescaping and inject content into the DOM.

osv:CVE-2016-10547
Complete source record
{
  "id": "5118163364d014d821b7149da94290353fc27682d8f5650ffdb3de9ef50da049",
  "url": "https://osv.dev/vulnerability/CVE-2016-10547",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-10547",
    "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[]=`, it is possible to bypass autoescaping and inject content into the DOM.",
    "evidence": "osv:CVE-2016-10547",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2016-10547",
      "aliases": [
        "CVE-2016-10547",
        "GHSA-f7ph-p5rv-phw2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mozilla/nunjucks",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "7faaf2c6d23f771bc03bc7b56d3dd0a942ab8643"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.4.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.4.2",
            "v2.4.1",
            "v2.4.0",
            "v2.3.0",
            "v2.2.0",
            "v2.1.0",
            "v2.0.0",
            "v1.3.3",
            "v1.3.2",
            "v.1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.0",
            "v1.0.7",
            "v1.0.5",
            "v1.0.4",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.1.9",
            "v0.1.8",
            "v0.1.7",
            "v0.1.6",
            "v0.1.5",
            "v0.1.4",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10547.json"
          }
        }
      ],
      "modified": "2026-10-20T10:47:12.454356936Z",
      "provider": "osv",
      "references": [
        "https://github.com/matt-/nunjucks_test",
        "https://github.com/mozilla/nunjucks/issues/835",
        "https://nodesecurity.io/advisories/147"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2016-10547",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 379351,
  "published_at": "2018-05-31T20:29:01.737+00:00"
}