CVE-2023-2142: mozilla nunjucks Cross-site Scripting
CVSS: 6.1v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2023-2142DEBIAN-CVE-2023-2142GHSA-x77j-w7wf-fjmw
Published 26-11-2024Last modified 27-11-2024
Vulnerability summary
CVE-2023-2142 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in mozilla nunjucks. EPSS estimates a 0.36% chance of exploitation in the next 30 days, higher than 28.6% of scored vulnerabilities.
CVSS score
6.1/10
010
Medium · v3.1 (CVE.org)EPSS score
0.36%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded
Timeline
- 26-11-2024PublishedVulnerability first disclosed.
- 27-11-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versionsMedium 5.3Preferred score · OSV · Npm (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NSourcesSingle source
Medium 6.1Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NSourcesAll 5 agree
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.36%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
0.00 pp
From 0.36% on 18-09-2026
18-09-202618-10-2026
EPSS score0.36%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- node-nunjucksAll versions (No fix recorded) | < 3.2.4+~cs4.2.7-1
Mozilla1 product
- nunjucks< 3.2.4
Npm1 product
- nunjucks< 3.2.4
Ubuntu1 product
- node-nunjucksAll versions (No fix recorded)
4 vendors · 4 products
References
10 links- github.com/mozilla/nunjucksPACKAGE