{"id":"CVE-2016-10547","aliases":["GHSA-f7ph-p5rv-phw2"],"url":"https://o3.security/vulnerability/CVE-2016-10547","summary":"Cross-Site Scripting in nunjucks","details":"Affected versions of `nunjucks` do not properly escape specially structured user input in template vars when in auto-escape mode, resulting in a cross-site scripting vulnerability.\n\n## Proof of Concept\n\nBy using an array for the keys in a template var, escaping is bypassed.\n```javascript\nname[]=<script>alert(1)</script>\n```\n\nA full PoC is available in the references section.\n\n\n## Recommendation\n\nUpdate to version 2.4.3 or later.","published":"2018-05-31T20:29:01.737Z","modified":"2026-10-20T10:47:12.454356936Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":3,"affectedPackages":[{"ecosystem":"npm","name":"nunjucks","fixedVersion":"2.4.3"}],"fix":null,"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"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10547"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f7ph-p5rv-phw2"},{"type":"WEB","url":"https://www.npmjs.com/advisories/147"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:47:12.454356936Z"}}