PT-2023-18187 · Nunjucks+1 · Nunjucks+1

Blaiddx64

+1

·

Published

2023-04-20

·

Updated

2025-06-24

·

CVE-2023-2142

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Nunjucks versions prior to 3.2.4
Description The issue allows bypassing the restrictions provided by the autoescape functionality in Nunjucks. If two user-controlled parameters are on the same line in the views, it is possible to inject cross-site scripting payloads using the backslash character. This can be achieved when user-controlled parameters are used in a way that allows injection of malicious scripts.
Recommendations For versions prior to 3.2.4, update to version 3.2.4 to resolve the issue. As a temporary workaround, consider restricting the use of user-controlled parameters on the same line in views to minimize the risk of exploitation. Avoid using the backslash character in user-controlled parameters until the issue is resolved.

Fix

XSS

Weakness Enumeration

Related Identifiers

CVE-2023-2142
GHSA-X77J-W7WF-FJMW

Affected Products

Debian
Nunjucks