CVE-2023-2142

published 26 Nov 2024 · updated 27 Nov 2024

Nunjucks autoescape bypass leads to cross site scripting

6.1MediumCVSS 6.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Nunjucks 3.2.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MozillaNunjucks<3.2.43.2.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Mozilla, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-2142 severity on Zeptric[![CVE-2023-2142](https://zeptric.io/badge/cve/CVE-2023-2142.svg)](https://zeptric.io/cve/CVE-2023-2142)