NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · n8n

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

mediumCVSS 4.0 6.3 · 3.1 5.4GHSA-2vff-hj5x-8gq7

A prototype pollution bug in n8n lets a crafted payload sent to a public webhook inject attacker-chosen fields into workflow data. Downstream built-in nodes then treat those fields as normal values, so the workflow can act as a confused deputy using the owner's credentials. Fixed in n8n 2.25.7 and 2.26.2.

Published Jun 16, 2026 · Updated Jul 20, 2026 · Analysis Nov 2, 2026

What an attacker can do

During internal object copying, n8n merged webhook payload data in a way that let special keys modify the object prototype. The injected fields then appeared as ordinary properties in the workflow data. Built-in nodes later in the workflow read them as if the workflow author had set them.

No account is needed. The attacker only has to send a request to a public, unauthenticated webhook URL. The risky shape is a workflow where that webhook feeds data through transform nodes into action nodes that hold sensitive credentials or run database operations. In that case the attacker can steer the action: pick different records than intended, or make the workflow issue outbound requests that carry the workflow owner's configured credentials.

The damage is bounded by what the downstream nodes can do. Reported impact is low confidentiality and low integrity, with no availability effect. The CVSS vector rates attack complexity as high in version 3.1, since the result depends on how a given workflow is built. The advisory names no specific nodes and gives no proof of concept.

Who is affected

n8n on npm below 2.25.7, and 2.26.0 and 2.26.1. Workflows are exposed only where a public webhook trigger passes data to action nodes using credentials or database access. Check your version:

npm ls n8n

Then list workflows with a Webhook node set to no authentication and note what they connect to.

n8n

Ecosystem
npm
Affected
>= 2.26.0, < 2.26.2
Fixed in
2.26.2
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
< 2.25.7
Fixed in
2.25.7
Check
npm ls n8n

How to fix it

Upgrade to n8n 2.25.7 or 2.26.2, or later. For example:

npm install -g [email protected]

The advisory gives two temporary measures that it says do not fully fix the problem. Do not expose unauthenticated webhook workflows that route incoming data through transform nodes into action nodes with sensitive credentials or database operations. Also limit workflow creation and editing to fully trusted users.

How to tell if you were hit

The advisory lists no indicators. Review execution history for public webhook workflows and compare input payloads with the fields the downstream nodes used. Look for webhook bodies containing keys such as __proto__, constructor or prototype. Check outbound requests and database writes made by these workflows for targets or records the workflow was not designed to touch. Webhook paths that receive traffic from unknown sources are the first place to look.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

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.

Patches

The issue has been fixed in n8n versions 2.25.7, and 2.26.2. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Avoid exposing public (unauthenticated) webhook workflows that pass incoming data through transform nodes into action nodes with sensitive credentials or database operations.
  • Limit workflow creation and editing permissions to fully trusted users only.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to sm1ee, cookesan.

Questions

Does CVE-2026-54306 need authentication?

No. The attacker sends a crafted payload to a public, unauthenticated webhook. The vector lists no privileges and no user interaction.

Which n8n versions fix CVE-2026-54306?

2.25.7 on the older line and 2.26.2 on the newer line. Anything below 2.25.7, and 2.26.0 to 2.26.1, is vulnerable.

What can an attacker actually do with this n8n flaw?

Inject fields that downstream nodes consume, so the workflow targets unintended records or sends outbound requests with the owner's credentials. The effect depends on how each workflow is built.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries