Nunjucks <3.2.4 Autoescape Bypass via \ Enables XSS
CVE-2023-2142 Published on November 26, 2024
Nunjucks autoescape bypass leads to cross site scripting
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.
Vulnerability Analysis
CVE-2023-2142 is exploitable with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2023-2142. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.
Weakness Type
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2023-2142 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2023-2142
Want to know whenever a new CVE is published for Mozilla Nunjucks? stack.watch will email you.
Affected Versions
Mozilla Nunjucks:- Before 3.2.4 is affected.
- Before 3.2.4 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.