CVE-2023-2142

MEDIUM

Nunjucks < 3.2.4 - Cross-Site Scripting via Autoescape Bypass

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Issue Tracking, Permissions Required issue-tracking
https://bugzilla.mozilla.org/show_bug.cgi?id=1825980

Scores

CVSS v3 6.1
EPSS 0.0019
EPSS Percentile 40.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-79
Status published
Products (2)
mozilla/nunjucks < 3.2.4
npm/nunjucks 0 - 3.2.4npm
Published Nov 26, 2024
Tracked Since Feb 18, 2026