Lucene search

K
osvGoogleOSV:GHSA-F7PH-P5RV-PHW2
HistoryNov 06, 2018 - 11:13 p.m.

Cross-Site Scripting in nunjucks

2018-11-0623:13:37
Google
osv.dev
10

0.002 Low

EPSS

Percentile

52.7%

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.

CPENameOperatorVersion
nunjuckslt2.4.3

0.002 Low

EPSS

Percentile

52.7%

Related for OSV:GHSA-F7PH-P5RV-PHW2