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
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Nunjucks