Cross-Site Scripting in nunjucks
Moderate severity
GitHub Reviewed
Published
Nov 6, 2018
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Published to the GitHub Advisory Database
Nov 6, 2018
Reviewed
Jun 16, 2020
Last updated
Jan 9, 2023
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.
A full PoC is available in the references section.
Recommendation
Update to version 2.4.3 or later.
References