CVE-2026-77077: n8n - Command Injection
- Cve: CVE-2026-77077
- Name: n8n - Command Injection
- 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.
- Impact: Authenticated users can execute arbitrary commands in the runner container, potentially affecting multiple tenants and leading to full system compromise.
- Remediation: Update to version 1.123.69, 2.33.4, 2.34.1 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker must be authenticated and have access to the Code node
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- Epss score: 0.00563
- Epss percentile: 0.47721
- Assignee: [email protected]
- Published at: 2026-08-20T12:16:39Z
- Age in days: 96
- Modified at: 2026-09-01T19:44:33Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-77077
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/n8n-io/n8n/security/advisories/GHSA-m3hg-p5r9-fg9h | nvd | Mitigation, Vendor Advisory |
| https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-eventemitter-prototype-pollution | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| n8n:n8n | = 2.34.0; >= 2.33.0, < 2.33.4; < 1.123.69 | no | nvd | /v1/products/n8n/n8n |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| n8n-io/n8n | security_advisory | yes | /v1/repositories/n8n-io/n8n |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 91957
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports