Read the docs
TI-2023-02010 Aliases CVE-2023-2142GHSA-x77j-w7wf-fjmw

Nunjucks autoescape bypass leads to cross site scripting

Priority MEDIUM 60CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00386 32nd percentileScored 2026-11-07
Fix Fixed Nunjucks (Mozilla): 3.2.4nunjucks (npm): 3.2.4

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MozillaNunjucksbefore 3.2.43.2.4Patch availableCNA
—nunjucks (npm)before 3.2.43.2.4Patch availableGHSA-x77j-w7wf-fjmw
  • Nunjucks VendorMozilla Affected before 3.2.4 Fixed in 3.2.4 Patch available CNA
  • nunjucks (npm) Vendor— Affected before 3.2.4 Fixed in 3.2.4 Patch available GHSA-x77j-w7wf-fjmw

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:*before 3.2.4VulnerableMozilla
  • cpe:2.3:a:mozilla:nunjucks:*:*:*:*:*:*:*:* Versions before 3.2.4 Vulnerable ·Mozilla

Remediation

  • Fix · CNA Nunjucks (Mozilla) Fixed in 3.2.4
  • Fix · GHSA-x77j-w7wf-fjmw nunjucks (npm) Fixed in 3.2.4 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Developer Hub 1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-2142
  2. 2026-10-03 Alias added: GHSA-x77j-w7wf-fjmw
  3. 2026-10-27 Affected versions changed · Red Hat

References

  • TI-2016-08588 Cross-site scripting in HackerOne nunjucks node module CVSS 3.0MEDIUM 6.1

Sources