6.1

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

Analyzed
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) vulnerability in mozilla nunjucks. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 34.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.1/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.39%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 26-11-2024
    PublishedVulnerability first disclosed.
  2. 27-11-2024
    Last 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 versions

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.39% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • node-nunjucksAll versions (No fix recorded) | < 3.2.4+~cs4.2.7-1
Mozilla1 product
Npm1 product
  • nunjucks< 3.2.4
Ubuntu1 product
  • node-nunjucksAll versions (No fix recorded)

4 vendors · 4 products

References

10 links