Description
n8n versions before 1.123.69, 2.33.4, and 2.34.1 contain a JavaScript task runner VM sandbox escape. The runner's prototype-freezing routine covers globalThis functions but not internal module constructors such as EventEmitter, allowing an authenticated user with Code node access to exploit prototype pollution to execute arbitrary commands within the runner container. Because the polluted prototype is a process-wide object, the corruption persists across other tenants' Code node executions on the same shared runner. On v1.x instances without task runners enabled, Code node JavaScript runs directly in the main n8n process, where the impact could be higher.
Published: 2026-08-20
Score: 7.2 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a prototype‑pollution flaw in the JavaScript task runner of n8n. The sandbox’s freeze routine protects only global functions and misses internal constructors such as EventEmitter. An authenticated user who can use a Code node can modify the EventEmitter prototype, which is process‑wide, and thereby inject arbitrary JavaScript that is executed with the runner container’s privileges. Because the polluted prototype persists across tenants, one user can affect all jobs that run on the shared runner, and on v1.x instances where the Code node runs in the main process the impact is potentially even larger.

Affected Systems

n8n-io’s n8n product is affected. Versions prior to 1.123.69 on the v1.x branch and prior to 2.33.4 or 2.34.1 on the v2 branch are vulnerable. The issue appears in all releases before those specified patch versions.

Risk and Exploitability

The flaw carries a CVSS score of 7.2, indicating a moderate risk, and there is currently no EPSS score available. The vulnerability is not listed in the CISA KEV catalog. An attacker must be authenticated and have Code node access; from there they can exploit the prototype pollution to run arbitrary commands inside the runner container, potentially escaping the sandbox and impacting other tenants. The exploit’s persistence through a process‑wide prototype dirtying increases its tactical value.

Generated by OpenCVE AI on August 20, 2026 at 21:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade n8n to a fixed version (v1.123.69, v2.33.4, v2.34.1 or later).
  • If an immediate upgrade is not possible, limit Code node privileges to trusted users or disable Code node execution entirely.
  • For v1.x instances without task runners, move Code node JavaScript execution to separate processes or disable it to prevent sandbox escape.

Generated by OpenCVE AI on August 20, 2026 at 21:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 20 Aug 2026 11:45:00 +0000

Type Values Removed Values Added
Description n8n versions before 1.123.69, 2.33.4, and 2.34.1 contain a JavaScript task runner VM sandbox escape. The runner's prototype-freezing routine covers globalThis functions but not internal module constructors such as EventEmitter, allowing an authenticated user with Code node access to exploit prototype pollution to execute arbitrary commands within the runner container. Because the polluted prototype is a process-wide object, the corruption persists across other tenants' Code node executions on the same shared runner. On v1.x instances without task runners enabled, Code node JavaScript runs directly in the main n8n process, where the impact could be higher.
Title n8n before 1.123.69 Remote Code Execution via EventEmitter Prototype Pollution
First Time appeared N8n
N8n n8n
Weaknesses CWE-94
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 7.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-20T15:44:34.323Z

Reserved: 2026-08-20T10:51:39.784Z

Link: CVE-2026-77077

cve-icon Vulnrichment

Updated: 2026-08-20T15:44:27.484Z

cve-icon NVD

Status : Received

Published: 2026-08-20T12:16:39.127

Modified: 2026-08-20T16:18:33.910

Link: CVE-2026-77077

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T21:30:05Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')