Advisory

GHSA-f7ph-p5rv-phw2

Also known as: 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.

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-11-06 23:13 UTC
Modified
2023-11-08 03:58 UTC

Affected packages and fixes

nunjucks

npm · All systems

Affected

  • introduced 0, fixed 2.4.3 (semver)

Fixed versions

2.4.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences