CVE-2026-54306 n8n: Prototype Pollution enables confused-deputy execution via public webhooks

Medium 6.3 Published Updated

Prototype pollution in n8n allows attackers to inject fields via public webhooks, enabling confused-deputy attacks that execute actions using owner credentials.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-54306?

CVE-2026-54306 is a medium-severity code injection vulnerability in N8n N8n, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

n8n is an open source workflow automation platform. Prior to 2.25.7 and 2.26.2, a prototype pollution vulnerability allowed a crafted public webhook payload to inject attacker-controlled fields into workflow data during internal object copying. These fields could be surfaced and consumed as normal values by downstream built-in nodes. Where a workflow combines a public webhook with action nodes that consume the resulting fields, an attacker could cause the workflow to act as a confused deputy — targeting unintended records or issuing outbound requests using the workflow owner's configured credentials. This vulnerability is fixed in 2.25.7 and 2.26.2.

Weakness: CWE-1321

Which versions are affected by CVE-2026-54306?

4 open source packages ship an affected version, including n8n. It affects 1 product.

PackageAffectedFixed in
n8n npmAll versions2.25.7
n8n npmAll versions2.25.7
n8n npmFrom 2.26.02.26.2
n8n npmFrom 2.26.02.26.2

Products include N8n N8n.

How do I fix CVE-2026-54306?

Upgrade n8n to a fixed version for your release line: 2.25.7 or 2.26.2.

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

Is CVE-2026-54306 being exploited?

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

All N8n N8n vulnerabilities

Sources

Also known as GHSA-2vff-hj5x-8gq7, MINI-h7gm-pq8m-c8ph, ROOT-APP-NPM-CVE-2026-54306.

Is CVE-2026-54306 in your software?

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

Check your SBOMs for free