CVE-2026-77077: Improper Control of Generation of Code ('Code Injection') in n8n-io n8n
Description
CVE-2026-77077 is a high-severity vulnerability in n8n before versions 1.123.69, 2.33.4, and 2.34.1. It involves a JavaScript task runner VM sandbox escape due to incomplete prototype freezing, allowing authenticated users with Code node access to execute arbitrary commands within the runner container. The vulnerability enables prototype pollution that persists across tenants sharing the same runner. On older v1.x instances without task runners, the impact could be more severe as code runs in the main process.
CVSS v4.0
Score 7.2high
Affected software
n8n-io
n8n
n8n-io
n8n
n8n-io
n8n
pkg:github/n8n-io/n8nRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from the n8n JavaScript task runner's prototype-freezing routine, which protects globalThis functions but not internal module constructors like EventEmitter. An authenticated user with access to the Code node can exploit prototype pollution to execute arbitrary commands inside the runner container. The polluted prototype is process-wide, causing the corruption to persist across executions by other tenants on the same shared runner. In v1.x instances without task runners, the Code node executes JavaScript directly in the main n8n process, increasing potential impact.
Potential Impact
An authenticated user with Code node access can achieve arbitrary command execution within the runner container. Because the prototype pollution affects a process-wide object, it can impact multiple tenants sharing the same runner, leading to cross-tenant code execution. On older v1.x instances without task runners, the vulnerability could allow code execution in the main n8n process, potentially increasing the severity of impact.
Mitigation Recommendations
No explicit patch or remediation details are provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is applied, restrict Code node access to trusted users only to mitigate exploitation risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-20T10:51:39.784Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a86e706acd9273b498befb8
Added to database: 08/20/2026, 11:37:42 UTC
Last enriched: 09/11/2026, 01:47:13 UTC
Last updated: 10/05/2026, 06:48:18 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.