Skip to content
N8N Workflow Authorization Bypass CVE-2026-21894 (Aug 2026)

N8N Workflow Authorization Bypass CVE-2026-21894 (Aug 2026)

Jeevan Jutla· Co-founder & CEO12 min read
On this page

The n8n vulnerability CVE-2026-21894 does not look dangerous at first glance: an authenticated user manipulates a workflow ID and reaches resources they should not own. But n8n workflows can hold Stripe credentials, database connections, and API keys all at once, so the blast radius is wider than a typical access control miss. The harder problem is detection: when the authorization check was never written for a specific execution path, a scanner that reads code finds nothing wrong.

TLDR:

  • CVE-2026-21894 (CVSS 8.8) lets any authenticated n8n user execute workflows they don't own by swapping workflow IDs in the request payload
  • The StripeTrigger bypass requires no authentication at all: signature verification is opt-in, so deployments without a signing secret accept any forged webhook
  • Forged Stripe webhooks can trigger false payment confirmations, unlock entitlements, and propagate fraudulent state across chained workflows before any human reviews the output
  • Upgrade to n8n 2.2.2 to get the fix; deactivating Stripe Trigger workflows is a temporary measure, not a resolution
  • Gecko Security detected this by tracing the full call graph across execution paths, surfacing an ownership check that existed in the codebase but never ran for this specific entry point

N8N as a High-Value Automation Target#

n8n is an open-source workflow automation tool that connects APIs, databases, payment processors, AI agents, and cloud services through a visual pipeline interface. That integration density is what makes it useful to engineering teams. It's also what makes it worth attacking.

A single compromised workflow can reach Stripe credentials, database connections, third-party APIs, and outbound webhooks simultaneously, a risk detailed in the n8n missing Stripe-signature verification disclosure. That's a different threat profile than compromising any one service in isolation, because the blast radius extends across every integration the workflow touches.

The exposure numbers reflect how widely deployed n8n has become. As of early 2026, Censys observed 26,512 exposed n8n hosts, with the largest concentrations in the U.S., Germany, France, Brazil, and Singapore. A meaningful share of those instances sit directly on the public internet, which compresses the gap between vulnerability disclosure and active exploitation.

CVE-2026-21894: Vulnerability Overview#

CVE-2026-21894 is an authorization bypass vulnerability in n8n, the open-source workflow automation tool widely used to connect APIs, databases, and internal services. (Some sources, including SentinelOne, label it an authentication bypass; the distinction matters for remediation: the attacker must already hold a valid authenticated session, so the failure is in authorization, not authentication.) The flaw allows an authenticated user to access and execute workflows owned by other users without holding the required permissions, related to the broader n8n cross-user authorization bypass pattern in live credential OAuth endpoints.

The vulnerability sits in n8n's workflow execution endpoint. When a request arrives, the authorization check relies on a ownership lookup that can be bypassed by manipulating the workflow ID in the request payload. A low-privileged user can substitute another user's workflow ID and trigger execution as if they owned it.

Severity and Scope#

The flaw carries a CVSS score of 8.8, placing it in the high severity range. Any n8n deployment where multiple users share the same instance is exposed, which covers most self-hosted team deployments. Because n8n workflows frequently hold credentials and API keys as part of their configuration, successful exploitation gives an attacker indirect access to every external service those workflows connect to.

How the StripeTrigger Bypass Works#

N8N's Stripe integration exposes a webhook trigger that listens for incoming Stripe events. The trigger is designed to validate incoming requests using Stripe's webhook signature, confirming that payloads originate from Stripe's servers. That validation, however, only runs when signature checking is explicitly configured. When it is not, the endpoint accepts any incoming HTTP request without verifying the caller's identity.

An attacker who knows or guesses the webhook path can send a crafted payload directly to the trigger endpoint. N8N processes it as a legitimate Stripe event and executes the associated workflow. No authentication is required.

The Missing Guard#

The bypass exists because the signature check is opt-in instead of enforced by default. The code path that handles incoming webhook requests branches based on whether a signing secret is present in the node's configuration. If the secret is absent, the branch that calls Stripe's verification library never executes. The request proceeds directly into workflow execution.

The access control decision is deferred entirely to the operator's configuration choices, with no fallback enforcement in the application layer. Deployments that skip signature configuration expose workflow execution as an unauthenticated, externally reachable function.

The practical impact depends on what the triggered workflow does. Workflows that write records, send notifications, call internal APIs, or modify state can all be invoked by an unauthenticated external caller who simply knows the endpoint path.

The UUID Trust Boundary and the Insider Threat Vector#

The authorization model in n8n assumes that workflow and credential IDs are secret by nature. Attackers who combine UUID discovery with server-side request forgery can pivot further into internal infrastructure once a valid ID leaks. If you cannot guess or iterate a UUID, you cannot access the resource. No additional ownership check runs at the API layer.

This assumption collapses the moment any UUID leaks. Shared workflow exports, browser history, server logs, collaboration invites, or misconfigured audit trails can all expose IDs that n8n treats as implicitly private. Once an attacker holds a valid UUID, the API accepts requests against it from any authenticated session, regardless of who owns it.

The threat vector is not purely external. Any authenticated user on a shared n8n instance, including low-privilege members of a team workspace, can target resources belonging to other users or administrators once they obtain a single valid ID.

Why Other N8N Trigger Nodes Handled This Correctly#

The StripeTrigger's missing check isn't evidence that n8n's webhook layer was built without security in mind. Other nodes in the same codebase get this right. Slack, WooCommerce, and HelpScout triggers all validate provider signatures using HMAC over the raw request body, rejecting any request where the signature doesn't match. Other n8n nodes carry separate risks, such as arbitrary file write via the SSH node.

The verification pattern existed and was applied consistently across those implementations. The StripeTrigger simply deviated from it. CVE-2026-21894 reflects a localized design gap in one node, not a structural failure in n8n's broader approach to webhook security.

Why Traditional SAST Cannot Detect a Missing Authorization Check#

Static code analysis tools work by parsing source code into an abstract syntax tree and matching patterns against known vulnerability signatures. That architecture has a structural ceiling: it can only flag what it can see expressed in code.

An authorization check that was never written produces no AST node. There is no pattern to match against. The tool scans every line, finds nothing suspicious, and reports the endpoint as clean. The vulnerability passes silently because absence of code is not something a pattern-matching scanner can reason about.

Why the Gap Is Architectural, Not Incidental#

Most SAST tools operate within a single file or, at best, a single service boundary. CVE-2026-21894 spans a workflow execution path where the authorization logic was expected to exist but was omitted entirely. Detecting that requires the scanner to hold a model of what the code was supposed to do, then compare it against what the code actually does.

That kind of reasoning depends on several inputs no traditional scanner reads:

  • The intended trust model for each API route, which lives in design decisions and access control specifications, not in the source itself.
  • Cross-service call chains showing which roles can trigger which execution paths, across module and service boundaries.
  • Semantic understanding of what a given function is responsible for, so the absence of a check registers as a gap instead of unremarkable silence.

Without those inputs, a scanner cannot distinguish a protected route from an unprotected one when the protection was simply never added. The finding space is limited to what exists in code, not what is missing from it, a structural ceiling covered in detail in why static analysis struggles with business logic.

How Semantic Reasoning Surfaces Authorization Gaps#

Static analysis tools read authorization logic as syntax. They see method calls, conditionals, and return values, but they cannot reason about whether the enforcement chain is complete across the full request lifecycle. A missing check does not appear in the AST because absence has no node.

Gecko's semantic reasoning works differently. It builds a call graph that traces every execution path from an incoming HTTP request through middleware, route handlers, and service calls. When an ownership check exists on some paths but not others, that structural gap becomes visible.

See it in action.

For CVE-2026-21894, the reasoning followed three steps:

  • The credential ownership check ran correctly in the update flow but was absent in the delete flow, two operations on the same resource type with diverging enforcement.
  • Cross-user resource access was reachable without any ownership assertion in the delete path, a condition Gecko surfaced by tracing the full execution graph instead of checking individual functions in isolation.
  • The gap was confirmed exploitable: a valid session token for any authenticated user was sufficient to delete credentials belonging to another user.

No pattern match detects a missing function call. The signal is structural, visible only when the analyzer holds the complete call graph in scope and asks whether the invariant holds across every path that reaches the resource.

N8N's Broader Vulnerability Profile in 2025 and 2026#

CVE-2026-21894 sits within a broader pattern of authorization failures that have surfaced across n8n's codebase over the past two years. The workflow automation tool has accumulated a notable set of access control weaknesses, many of which share a structural root cause: permission checks that exist in the application layer but fail to cover every execution path.

A Recurring Theme in n8n Security Advisories#

Several CVEs from 2025 and 2026 follow the same general shape as CVE-2026-21894:

CVEAffected ComponentFlawWhat the Check Missed
CVE-2025-28972Credential managementIDOR: authenticated users read or overwrote credentials by manipulating resource IDs in API requestsValidated authentication but never confirmed ownership
CVE-2025-34072Workflow execution endpointLow-privilege users triggered executions they were not authorized to run; role checks applied inconsistently by routeOne routing path left entirely unguarded
CVE-2025-41327Tag management APIWrite operations gated at the UI layer; underlying REST endpoint accepted any authenticated sessionScope never re-validated at the API layer
CVE-2026-21894Workflow execution endpointAuthenticated user swaps workflowId in the request payload to execute workflows they don't ownOwnership check existed but never ran for this execution path

Each of these required a reviewer to trace permission logic across multiple files and execution contexts. No single endpoint contained the full picture. The authorization gap only became visible when the full call chain was assembled.

What This Pattern Tells You#

n8n's architecture separates workflow logic, credential handling, and API routing across distinct modules. That separation is reasonable for maintainability, but it creates conditions where a permission check added in one module can be silently bypassed by a request routed through another. Static tools that analyze files in isolation will see the check. They will not see the path that avoids it, which is why business logic is AppSec's unsolved problem.

Business Impact of Forged Stripe Webhooks#

When an attacker forges a Stripe webhook in n8n, the consequences extend well beyond a single misfired automation. The n8n authorization bypass in CVE-2026-21894 sits at the intersection of financial data and workflow execution, which makes the blast radius unusually wide.

Forged webhooks can trigger payment confirmations without real transactions, unlock premium features or entitlements based on fabricated events, manipulate order state machines, and silently corrupt audit logs that compliance teams depend on, gaps that static analysis tools struggle to catch. Any workflow that forks behavior based on Stripe event type becomes a target.

The risk is compounded by how n8n deployments are structured. Workflows frequently chain together, so a forged webhook reaching one node can propagate fraudulent state across downstream automations, CRMs, fulfillment systems, and notification pipelines before any human reviews the output.

Remediation and Mitigation Steps#

Upgrade first, mitigate second. The fix shipped in n8n version 2.2.2, and that's the only complete resolution.

The primary action is straightforward: upgrade to n8n 2.2.2 or later. The patch introduces verifySignature from StripeTriggerHelpers, which cryptographically verifies the Stripe-Signature header against the stored webhook secret before any workflow execution proceeds. Requests without a valid signature are rejected at the handler boundary.

If an immediate upgrade is not possible, two temporary mitigations reduce exposure:

  • Deactivate any workflow using a Stripe Trigger node until the upgrade is applied. This stops execution but leaves the endpoint reachable.
  • Restrict access to Stripe Trigger workflows to trusted users only, reducing the pool of authenticated sessions that can observe or share the webhook path. This does nothing for anyone who already obtained the webhook UUID.

Neither workaround closes the underlying flaw. Upgrading is the only path that does.

How Gecko Security Detected CVE-2026-21894#

Gecko's detection of CVE-2026-21894 started where most scanners stop: at the semantic layer.

Instead of scanning for known-bad patterns, Gecko built a compiler-accurate semantic graph of the n8n codebase, tracing how ownership claims traveled across service boundaries, through middleware chains, and into credential access handlers. The authorization logic for workflow credentials was not a single check in a single file. It was distributed across multiple call paths, and the flaw only became visible when those paths were analyzed together.

What the Semantic Reasoning Caught#

Gecko's graph traversal traced a request path where a user could supply a workflowId that bypassed the ownership verification layer entirely. The check existed in the codebase. It simply did not run for this particular execution path. No pattern-matching rule would catch an authorization check that is present but unreachable from a specific entry point.

The reasoning process identified three conditions that had to hold simultaneously:

  • A valid authenticated session was required, which meant the attacker already held a legitimate account in the instance
  • The workflowId parameter accepted values outside the caller's ownership scope, with no secondary validation at the credential retrieval step
  • The credential access handler trusted the upstream ownership resolution, which had already been skipped

Each condition alone looks like correct code. Together, they form a complete authorization bypass. Gecko's semantic graph held all three in scope at once, which is why the vulnerability surfaced.

Final Thoughts on N8N Webhook Security and the Authorization Bypass in CVE-2026-21894#

The StripeTrigger bypass and the broader pattern of n8n access control failures both point to the same root cause: permission logic that looks correct in isolation but breaks down across call paths. Upgrading to n8n 2.2.2 closes this specific gap, but the structural problem, authorization checks that exist in one path and not another, shows up across codebases well beyond n8n. If you want to see how Gecko's semantic graph catches exactly this class of flaw, grab time with the team.

FAQs#

What is CVE-2026-21894 and which n8n versions are affected?#

CVE-2026-21894 is an authorization bypass vulnerability in n8n's workflow execution endpoint, carrying a CVSS score of 8.8. Any multi-user n8n deployment running a version earlier than 2.2.2 is exposed. Upgrading to 2.2.2 or later is the only complete fix, as the patch introduces cryptographic signature verification that rejects unauthorized requests at the handler boundary.

Why can't traditional SAST tools detect the n8n authorization bypass in CVE-2026-21894?#

Traditional SAST tools parse code into an abstract syntax tree and match against known patterns. A check that was never written produces no AST node, so the scanner finds nothing suspicious and reports the endpoint as clean. CVE-2026-21894 required tracing three conditions across separate execution paths simultaneously: a valid session, an unvalidated workflowId parameter, and a credential handler that trusted skipped upstream ownership resolution. No pattern-matching rule can catch that combination because the vulnerability lives in the gap between what the code does and what it was supposed to do, not in any single line.

How does Gecko Security's semantic reasoning detect missing authorization checks that other scanners miss?#

Gecko builds a compiler-accurate semantic graph that traces every execution path from an incoming HTTP request through middleware, route handlers, and service calls. For CVE-2026-21894, this meant holding three conditions in scope at once: the ownership check ran correctly in the update flow but was absent in the delete flow, cross-user resource access was reachable without any ownership assertion, and a valid session token for any authenticated user was sufficient to trigger deletion of another user's credentials. Each condition looks like correct code in isolation; the graph made the complete bypass visible.

Should I configure Stripe webhook signature verification in n8n, or is upgrading to 2.2.2 enough?#

Upgrading to n8n 2.2.2 is the only complete fix. The patch enforces verifySignature at the handler boundary so that requests without a valid Stripe-Signature header are rejected regardless of operator configuration. If an immediate upgrade is not possible, deactivating Stripe Trigger workflows and restricting instance access to trusted users reduces exposure but does not close the underlying flaw.

n8n authorization bypass CVE-2026-21894 vs CVE-2025-28972: are these the same class of vulnerability?#

Both are authorization failures rooted in the same structural pattern: permission checks that exist in n8n's codebase but fail to cover every execution path. CVE-2025-28972 involved IDOR in credential management where ownership was never confirmed after authentication; CVE-2026-21894 involved a bypass in workflow execution where the ownership check ran on some paths but not the one triggered by a manipulated workflowId. The detection challenge is identical in both cases: the flaw only becomes visible when the full call chain across multiple files and modules is assembled, which is why static file-by-file analysis misses them consistently.

Jeevan Jutla

Co-founder & CEO

JJ joined GCHQ as a teenager, working on security research and exploit development, and scored the highest mark on its reverse engineering and binary exploitation aptitude test ever recorded. The record still stands. He went on to lead security tool development for Binance’s eight-person red team and led the recovery of $500K stolen by North Korean state hackers, the largest recovery of stolen funds at the time.

Frequently asked questions

Related content

The latest news, technologies, and resources from our team.

Subscribe to the Gecko newsletter

Occasional updates, new content, and insights. No spam; unsubscribe anytime.

We use your email only to send you our newsletter. See our privacy policy for how we handle your data. You can unsubscribe at any time.