CVE-2026-77077 n8n before 1.123.69 Remote Code Execution via EventEmitter Prototype Pollution

High 7.2 Published Updated

Authenticated users can exploit prototype pollution in the JavaScript task runner to execute arbitrary code, potentially affecting other tenants.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-77077?

CVE-2026-77077 is a high-severity code injection vulnerability in N8n N8n, published on 20 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2026-77077?

It affects 1 product.

Products include N8n N8n.

How do I fix CVE-2026-77077?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-77077 being exploited?

There is no known exploitation of CVE-2026-77077 in the wild and no public exploit code.

All N8n N8n vulnerabilities

Sources

Also known as GHSA-25g8-cwm4-wqr3, GHSA-m3hg-p5r9-fg9h, MINI-q5x6-m2cm-6hrg.

Is CVE-2026-77077 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free