CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-33720

CVE-2026-33720: OAuth Callback Authorization Bypass in n8n via State Ownership Verification Failure

Alon Barad
Alon Barad
Software Engineer

Mar 25, 2026·5 min read·92 visits

Executive Summary (TL;DR)

A logic flaw in n8n's OAuth callback handler allows attackers to bypass state parameter verification, leading to cross-user OAuth token theft on shared instances. Upgrading to version 2.8.0 patches the vulnerability.

n8n versions prior to 2.8.0 suffer from an Incorrect Authorization (CWE-863) vulnerability due to flawed evaluation of the N8N_SKIP_AUTH_ON_OAUTH_CALLBACK environment variable. This logic error causes the application to bypass ownership verification of the OAuth state parameter, enabling attackers to hijack OAuth tokens from other users on a multi-tenant instance.

Vulnerability Overview

The n8n workflow automation platform exposes an OAuth callback endpoint to facilitate external service integrations. Users configure credentials for third-party services, and n8n manages the OAuth 2.0 authorization code flow to obtain access and refresh tokens.

CVE-2026-33720 identifies a critical authorization failure within this callback handler in versions prior to 2.8.0. The vulnerability stems from the improper evaluation of the N8N_SKIP_AUTH_ON_OAUTH_CALLBACK environment variable.

When this vulnerability is triggered, the platform bypasses ownership verification of the OAuth state parameter. This failure allows an attacker to conduct a Cross-Site Request Forgery (CSRF) style attack against the OAuth flow, leading to the assignment of a victim's tokens to an attacker-controlled credential object.

Root Cause Analysis

The root cause of CVE-2026-33720 is a logic error in the boolean evaluation of an environment variable intended for testing purposes. The application introduces a configuration flag, N8N_SKIP_AUTH_ON_OAUTH_CALLBACK, to bypass authentication checks during end-to-end testing scenarios.

In vulnerable versions, the application evaluates this flag using a loose inequality check against the string literal 'true'. If the environment variable is undefined, or set to any value other than 'true', the inequality expression evaluates to true. This effectively reverses the intended logic, creating a fail-open condition.

Due to this flipped logic, the application skips the critical step of verifying the ownership of the OAuth state parameter during the callback phase. The state parameter is cryptographically tied to the user session that initiated the OAuth request, preventing cross-user token assignment. Bypassing this check removes the primary defense against CSRF in the OAuth 2.0 flow.

Code Analysis

The vulnerability resides in the packages/cli/src/controllers/oauth/abstract-oauth.controller.ts file. The core issue is the assignment of the skipAuthOnOAuthCallback constant.

The vulnerable implementation executes process.env.N8N_SKIP_AUTH_ON_OAUTH_CALLBACK !== 'true'. When the environment variable is entirely unset (which is the default in production environments), undefined !== 'true' evaluates to true. This instructs the controller to skip authentication checks by default.

// Vulnerable Implementation
export const skipAuthOnOAuthCallback = process.env.N8N_SKIP_AUTH_ON_OAUTH_CALLBACK !== 'true';

The patched implementation, introduced in PR #16944, abstracts the evaluation into a dedicated function. It correctly handles undefined values using the nullish coalescing operator (??) to enforce a safe default of 'false'. The function then uses strict equality (===) to verify the flag is explicitly enabled.

// Patched Implementation
export function shouldSkipAuthOnOAuthCallback() {
    const value = process.env.N8N_SKIP_AUTH_ON_OAUTH_CALLBACK?.toLowerCase() ?? 'false';
    return value === 'true';
}
export const skipAuthOnOAuthCallback = shouldSkipAuthOnOAuthCallback();

Exploitation Mechanics

Exploitation requires the attacker to have an active account on a multi-user n8n instance. The attacker initiates the attack by creating a new credential object for a target service, such as Google Drive or Salesforce.

During the initial OAuth connection phase, n8n generates a unique state parameter and binds it to the attacker's credential object. The attacker intercepts the authorization URL provided by n8n, which contains this specific state value, rather than completing the flow themselves.

The attacker then delivers this intercepted URL to a targeted victim who is also authenticated to the same n8n instance. When the victim clicks the link, they authorize the application with the third-party provider. The provider redirects the victim's browser back to n8n's callback endpoint, appending the authorization code and the attacker's state parameter.

Because the vulnerability disables state ownership verification, n8n accepts the callback payload. The system queries its database for the credential object associated with the provided state parameter, finds the attacker's object, and stores the newly minted access tokens there.

Impact Assessment

The successful exploitation of CVE-2026-33720 results in complete compromise of the victim's integrated third-party accounts. The attacker gains valid access and refresh tokens for any service the victim authorizes during the exploited flow.

These tokens are stored directly within the attacker's n8n environment. The attacker can subsequently build automated workflows utilizing these credentials to exfiltrate data, modify records, or pivot into the victim's SaaS environments. This access persists until the tokens expire or the victim explicitly revokes the OAuth grant at the third-party provider.

The vulnerability carries a CVSS 4.0 score of 6.3 (Medium). The scoring reflects the requirement for user interaction (the victim must click the crafted link) and the specific prerequisite configuration, despite the severe confidentiality and integrity impact on the resulting third-party integration.

Remediation and Mitigation

The primary remediation for CVE-2026-33720 is upgrading the n8n application to version 2.8.0 or later. This release contains the logic correction in the OAuth controller that enforces state parameter verification by default.

Administrators should audit their deployment environments to ensure the N8N_SKIP_AUTH_ON_OAUTH_CALLBACK environment variable is either unset or explicitly set to false. This variable is designed exclusively for automated testing and has no valid use case in a production environment.

Organizations utilizing multi-tenant n8n deployments should restrict access to trusted personnel. Enforcing strict network segmentation and limiting user provisioning minimizes the attack surface for internal cross-tenant exploitation.

Technical Appendix

CVSS Score
6.3/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Affected Systems

n8n Workflow Automation Platform

Affected Versions Detail

Product
Affected Versions
Fixed Version
n8n
n8n-io
< 2.8.02.8.0
AttributeDetail
CWE IDCWE-863
Attack VectorNetwork
CVSS Score6.3 (Medium)
ImpactOAuth Token Hijacking
Exploit StatusProof of Concept
KEV StatusNot Listed
Patch StatusFixed in 2.8.0

MITRE ATT&CK Mapping

T1068Exploitation for Privilege Escalation
Privilege Escalation
CWE-863
Incorrect Authorization

The software does not properly authorize a user's request, allowing an attacker to access restricted functionality.

Vulnerability Timeline

n8n version 2.8.0 released with patch
2026-02-09
Public disclosure and assignment of CVE-2026-33720
2026-03-25

References & Sources

  • [1]GHSA-vpgc-2f6g-7w7x
  • [2]CVE-2026-33720
  • [3]n8n-io/n8n Pull Request #16944

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-63304
8.1

CVE-2026-63304: OS Command Injection in WWBN AVideo via listFFmpegProcesses

WWBN AVideo versions through 29.0 contain an OS command injection vulnerability (CWE-78) in the standalone API utility function listFFmpegProcesses(). The function constructs a shell pipeline to monitor active FFmpeg processes by interpolating a user-controlled keyword parameter directly into a single-quoted grep argument without sanitization or shell escaping. An attacker capable of crafting or submitting a valid encrypted codeToExec payload can break out of the single-quoted argument context and execute arbitrary operating system commands with the privileges of the web server user.

Alon Barad
Alon Barad
3 views•9 min read
•about 3 hours ago•CVE-2026-59726
10.0

CVE-2026-59726: Unauthenticated Remote Code Execution in Ruflo MCP Bridge

Ruflo versions prior to 3.16.3 expose the Model Context Protocol (MCP) bridge HTTP endpoints (`POST /mcp` and `POST /mcp/:group`) on all network interfaces (`0.0.0.0:3001`) without authentication. Because the primary JSON-RPC tool dispatcher (`executeTool()`) bypasses existing tool blocklists, an unauthenticated network attacker can invoke the `terminal_execute` tool to achieve arbitrary command execution inside the bridge container. This initial access permits full exfiltration of third-party LLM provider API keys, unauthorized access to the co-located MongoDB instance, and manipulation of the AgentDB learning store.

Alon Barad
Alon Barad
5 views•2 min read
•about 3 hours ago•CVE-2026-59818
6.5

CVE-2026-59818: Improper Certificate Revocation List (CRL) Validation on Split gRPC Listeners in etcd

In etcd versions prior to 3.5.32 and 3.6.13, configuring the server with --listen-client-http-urls decouples HTTP and gRPC traffic onto distinct network listeners. Due to an implementation flaw in how TLS configurations are passed to the gRPC server instance, the Certificate Revocation List (CRL) defined by --client-crl-file is enforced exclusively on the HTTP listener and omitted entirely on the dedicated gRPC listener. This allows an adversary possessing a revoked, CA-signed client certificate to bypass mutual TLS (mTLS) revocation checks and authenticate directly to the gRPC interface.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 4 hours ago•CVE-2026-59831
4.4

CVE-2026-59831: Remote Code Execution via Unvalidated URL Scheme Handling in GitHub CLI

GitHub CLI (gh) versions 2.10.0 through 2.95.0 contain an input validation vulnerability in the `gh codespace jupyter` command path. When connecting to a remote Codespace to launch a JupyterLab session, the CLI retrieves a server URL via a remote procedure call (RPC) and passes it directly to the host operating system's default URL dispatcher without validating the scheme or target host. A compromised or malicious Codespace can return a custom protocol URI, such as `vscode://` or `vscode-insiders://`, allowing an attacker to invoke local desktop application handlers and achieve arbitrary command execution on the developer's workstation.

Alon Barad
Alon Barad
11 views•9 min read
•about 5 hours ago•CVE-2026-59191
6.9

CVE-2026-59191: Path Traversal and Arbitrary File Read in CakePHP TwigView FileLoader

A path traversal vulnerability exists in the cakephp/twig-view plugin for the CakePHP framework prior to versions 1.3.3 and 2.1.2. The Cake\TwigView\Twig\FileLoader::findTemplate() method verifies template existence using PHP's native file_exists() function without ensuring the target path resides within configured application or plugin template directories. When user-controlled input is passed to template inclusion mechanisms, an unauthenticated remote attacker can read arbitrary local files accessible to the PHP runtime.

Alon Barad
Alon Barad
5 views•9 min read
•about 6 hours ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
9 views•10 min read