Vulnerabilities · 2023 · Mozilla
CVE-2023-2142
Mozilla Nunjucks vulnerability
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
Nunjucks. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mozilla Nunjucks runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mozilla/nunjucks/security/advisories/GHSA-x77j-w7wf-fjmw · Vendor Advisory
- bugzilla.mozilla.org/show_bug.cgi?id=1825980
- github.com/mozilla/nunjucks/pull/1437
- github.com/mozilla/nunjucks/commit/ec16d210e7e13f862eccdb0bc9af9f60ff6749d6
- github.com/mozilla/nunjucks/releases/tag/v3.2.4
- nvd.nist.gov/vuln/detail/CVE-2023-2142
- github.com/advisories/GHSA-x77j-w7wf-fjmw
- nvd.nist.gov/vuln/detail/CVE-2023-2142
- cve.org/CVERecord?id=CVE-2023-2142
More vulnerabilities in Mozilla products
CVE-2026-24869CVE-2026-24868CVE-2026-0892CVE-2026-0891CVE-2026-0890CVE-2026-0889CVE-2026-0888CVE-2026-0887All 3,354
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.