All reports
Medium

Cross-Site Scripting in nunjucks

Affected versions

Affected versions
< 2.4.3
Fixed version
2.4.3

Exploitation

CVE-2016-10547

Probability of exploitation in the next 30 days: 1.39%

FIRST EPSS · 2026-11-22

Description

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.

Proof of Concept

By using an array for the keys in a template var, escaping is bypassed.

name[]=<script>alert(1)</script>

A full PoC is available in the references section.

Recommendation

Update to version 2.4.3 or later.

Links