N8n-io n8n
n8n before 1.123.69 Remote Code Execution via EventEmitter Prototype Pollution
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.123.69
Fixed in 1.123.69
- >= 2.34.0, < 2.34.1
Fixed in 2.34.1
- >= 2.0.0, < 2.33.4
Fixed in 2.33.4
Mitigation
Upgrade n8n to 1.123.69 or later.
Upgrade n8n to 2.34.1 or later.
Upgrade n8n to 2.33.4 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.