What’s Vulnerable › Vulnerabilities

CVE-2023-2142: Nunjucks autoescape bypass leads to cross site scripting

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

How to fix

Upgrade to a fixed version: Mozilla Nunjucks 3.2.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2023-2142 or the next vulnerability affects your stack