n8n's public webhook handler contains a prototype pollution flaw (CWE-1321) that allows unauthenticated attackers to inject arbitrary fields into workflow execution data by crafting a malicious HTTP payload — no credentials required. When these workflows chain a public webhook to action nodes such as database writes, outbound API calls, or third-party integrations, the injected fields propagate as trusted workflow data, causing the pipeline to act as a confused deputy: executing operations against attacker-chosen targets using the workflow owner's pre-configured credentials. Despite a moderate CVSS score of 5.4 (High Complexity), this CVE lands in the top 85th EPSS percentile, and n8n's track record of 95 prior CVEs in the same package signals sustained and aggressive security researcher attention. Patch immediately to n8n 2.25.7 or 2.26.2; as an interim workaround, disable or restrict all public (unauthenticated) webhook workflows that connect to action nodes with privileged or sensitive credentials.
What is the risk?
Real-world risk materially exceeds the CVSS 5.4 rating. The confused-deputy pattern means an attacker co-opts the workflow owner's already-configured API keys, DB connections, and OAuth tokens without ever needing to exfiltrate them directly. Attack complexity is rated High due to the requirement to understand the target's workflow topology, but n8n's public webhook surface is by design internet-exposed, significantly lowering the reconnaissance bar. No public exploit or CISA KEV listing exists at time of analysis, yet the top-85th-percentile EPSS score and 95 prior CVEs in this package indicate a well-researched target with active security community focus. AI and ML teams using n8n to orchestrate agentic pipelines — LLM calls, vector DB operations, data enrichment — face elevated risk for any workflow that accepts untrusted input via a public webhook.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| n8n | npm | >= 2.26.0, < 2.26.2 | 2.26.2 |
Do you use n8n? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
PATCH
Upgrade n8n to 2.25.7 or 2.26.2 immediately — both versions correct the internal object-copy logic to prevent prototype chain pollution.
-
WORKAROUND (if patching is delayed): Disable or convert all public (unauthenticated) webhook endpoints that feed into action nodes with sensitive credentials or database write permissions; switch to authenticated webhooks wherever possible.
-
LEAST PRIVILEGE
Scope all n8n workflow credentials to the minimum permissions required — limit API key scopes, restrict DB users to specific tables/operations — so a confused-deputy exploitation has limited blast radius.
-
AUDIT
Enumerate all workflows matching the pattern 'public webhook → transform node → credential-bearing action node' and treat them as highest priority for patching or disabling.
-
DETECT
Monitor n8n process and application logs for anomalous action node executions — unexpected target URLs, unusual record IDs, or spikes in outbound API calls from webhook-triggered workflows are indicators of exploitation.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-54306?
n8n's public webhook handler contains a prototype pollution flaw (CWE-1321) that allows unauthenticated attackers to inject arbitrary fields into workflow execution data by crafting a malicious HTTP payload — no credentials required. When these workflows chain a public webhook to action nodes such as database writes, outbound API calls, or third-party integrations, the injected fields propagate as trusted workflow data, causing the pipeline to act as a confused deputy: executing operations against attacker-chosen targets using the workflow owner's pre-configured credentials. Despite a moderate CVSS score of 5.4 (High Complexity), this CVE lands in the top 85th EPSS percentile, and n8n's track record of 95 prior CVEs in the same package signals sustained and aggressive security researcher attention. Patch immediately to n8n 2.25.7 or 2.26.2; as an interim workaround, disable or restrict all public (unauthenticated) webhook workflows that connect to action nodes with privileged or sensitive credentials.
Is CVE-2026-54306 actively exploited?
No confirmed active exploitation of CVE-2026-54306 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-54306?
1. PATCH: Upgrade n8n to 2.25.7 or 2.26.2 immediately — both versions correct the internal object-copy logic to prevent prototype chain pollution. 2. WORKAROUND (if patching is delayed): Disable or convert all public (unauthenticated) webhook endpoints that feed into action nodes with sensitive credentials or database write permissions; switch to authenticated webhooks wherever possible. 3. LEAST PRIVILEGE: Scope all n8n workflow credentials to the minimum permissions required — limit API key scopes, restrict DB users to specific tables/operations — so a confused-deputy exploitation has limited blast radius. 4. AUDIT: Enumerate all workflows matching the pattern 'public webhook → transform node → credential-bearing action node' and treat them as highest priority for patching or disabling. 5. DETECT: Monitor n8n process and application logs for anomalous action node executions — unexpected target URLs, unusual record IDs, or spikes in outbound API calls from webhook-triggered workflows are indicators of exploitation.
What systems are affected by CVE-2026-54306?
This vulnerability affects the following AI/ML architecture patterns: AI agent orchestration platforms, Workflow automation with AI/LLM action nodes, Multi-step agentic pipelines with external tool integrations, Data enrichment pipelines with public webhook ingestion, No-code AI workflow builders with credential-bearing action nodes.
What is the CVSS score for CVE-2026-54306?
CVE-2026-54306 has a CVSS v3.1 base score of 5.4 (MEDIUM). The EPSS exploitation probability is 0.05%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0048 External Harms AML.T0049 Exploit Public-Facing Application AML.T0053 AI Agent Tool Invocation AML.T0083 Credentials from AI Agent Configuration AML.T0086 Exfiltration via AI Agent Tool Invocation Compliance Controls Affected
What are the technical details?
Original Advisory
## 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.
Exploitation Scenario
An adversary identifies an organization's n8n instance hosting a publicly accessible webhook-triggered workflow that enriches incoming data and writes results to a CRM or triggers Slack notifications using the workflow owner's OAuth credentials. The adversary sends a crafted HTTP POST to the public webhook endpoint with a JSON body containing prototype pollution payloads — e.g., keys named '__proto__' or 'constructor.prototype' with attacker-controlled values. During n8n's internal object spread and copy operations, these keys pollute the JavaScript prototype chain on the workflow's execution data object. Downstream transform nodes surface the injected fields as legitimate data. An HTTP Request or database action node then consumes the poisoned field as a target URL, record ID, or API parameter, and executes the operation using the workflow owner's configured credentials. The attacker achieves proxy-authenticated access to integrated services — CRMs, LLM APIs, vector databases — without ever obtaining credentials directly and without leaving obvious authentication traces.
Weaknesses (CWE)
CWE-1321 — Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'): The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.
- [Implementation] By freezing the object prototype first (for example, Object.freeze(Object.prototype)), modification of the prototype becomes impossible.
- [Architecture and Design] By blocking modifications of attributes that resolve to object prototype, such as proto or prototype, this weakness can be mitigated.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N References
Timeline
Related Vulnerabilities
CVE-2026-33663 10.0 n8n: member role steals plaintext HTTP credentials
Same package: n8n CVE-2026-33660 10.0 TensorFlow: type confusion NPD in tensor conversion
Same package: n8n CVE-2026-21858 10.0 n8n: Input Validation flaw enables exploitation
Same package: n8n CVE-2026-27577 9.9 n8n: Code Injection enables RCE
Same package: n8n CVE-2026-27494 9.9 n8n: security flaw enables exploitation
Same package: n8n