All vulnerabilities

Servers and applications

GHSA-c9c6-rq46-h25v

Sandbox Escape in JavaScript Code Node via Prototype Pollution

Severity
Medium 6.0
Published
5 Aug 2026
Last changed
5 Aug 2026
Added to UpHeron
1 Nov 2026
Fixed in
1.123.69, 2.33.4, 2.34.1
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Read data · Change some data
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

The JavaScript Code node's VM sandbox did not freeze the sandbox Function.prototype, allowing an authenticated user to pollute it from within a Code node execution to recover a reference to the host's globalThis.

Exploitation requires the attacker to be an authenticated n8n user with the ability to create and execute workflows. The full exploit chain additionally depends on specific modules being available as an allowlisted import in the deployment's configuration.

From n8n-io/n8n's security advisory.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Restrict n8n instance access to fully trusted users only.
  • Review and minimise the list of modules permitted via NODE_FUNCTION_ALLOW_EXTERNAL to reduce the available gadget surface.
  • Ensure the task runner process runs under a dedicated low-privilege user account to limit the impact of a successful escape.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Workarounds as given by n8n-io/n8n's security advisory.

Affected software

SoftwareAffected versions
n8nServers and applications · github:n8n-io/n8n
  • Every version before 1.123.69
  • Every version before 2.34.1
  • Every version before 2.33.4

About n8n

low-code automation tool

From Wikidata, CC0 1.0.
Weekly downloads (npm)
103,525npm, 15 Nov 2026
Docker Hub pulls
286,090,810Docker Hub, 15 Nov 2026
GitHub stars
210,541GitHub, 15 Nov 2026
Forks
61,525GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Written in
TypeScript, Node.jsWikidata
First released
2019Wikidata
First published on GitHub
22 Jun 2019GitHub

References