{"id":"CVE-2016-10547","details":"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[]=\u003cscript\u003ealert(1)\u003c/script\u003e`, it is possible to bypass autoescaping and inject content into the DOM.","aliases":["GHSA-f7ph-p5rv-phw2"],"modified":"2026-04-10T03:48:17.263031Z","published":"2018-05-31T20:29:01.737Z","references":[{"type":"EVIDENCE","url":"https://github.com/matt-/nunjucks_test"},{"type":"EVIDENCE","url":"https://github.com/mozilla/nunjucks/issues/835"},{"type":"EVIDENCE","url":"https://nodesecurity.io/advisories/147"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mozilla/nunjucks","events":[{"introduced":"0"},{"last_affected":"7faaf2c6d23f771bc03bc7b56d3dd0a942ab8643"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.4.2"}]}}],"versions":["v.1.3.1","v0.1.0","v0.1.1","v0.1.2","v0.1.4","v0.1.5","v0.1.6","v0.1.7","v0.1.8","v0.1.9","v1.0.0","v1.0.1","v1.0.2","v1.0.4","v1.0.5","v1.0.7","v1.1.0","v1.2.0","v1.3.0","v1.3.2","v1.3.3","v2.0.0","v2.1.0","v2.2.0","v2.3.0","v2.4.0","v2.4.1","v2.4.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10547.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}