Skip to content
OpenAdvisories
Medium · 6.1 CVE-2023-2142 EUVD-2023-1422GHSA-x77j-w7wf-fjmw

Nunjucks autoescape bypass leads to cross site scripting

Published Nov 26, 2024 · Updated Nov 27, 2024 · Assigned by mozilla

Description

In Nunjucks versions prior to version 3.2.4, it was
possible to bypass the restrictions which are provided by the autoescape
functionality. If there are two user-controlled parameters on the same
line used in the views, it was possible to inject cross site scripting
payloads using the backslash \ character.

Affected products

VendorProductAffectedFixed
Mozilla Nunjucks < 3.2.4 3.2.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-nunjucks 3.2.4+~cs4.2.7-1 —
Debian 13 node-nunjucks 3.2.4+~cs4.2.7-1 —
Debian 12 node-nunjucks No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-nunjucks No fix yet —
Ubuntu 26.04 LTS node-nunjucks No fix yet —
Ubuntu 25.10 node-nunjucks No fix yet —
Ubuntu 24.04 LTS node-nunjucks No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm nunjucks < 3.2.4 3.2.4 GHSA-x77j-w7wf-fjmw

References