Skip to main content
Vulnerability Database/CVE-2026-103252

CVE-2026-103252: n8n Authorization Bypass Vulnerability

CVE-2026-103252 is an authorization bypass flaw in n8n that allows attackers to access sensitive project variables without proper validation. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-103252 Overview

CVE-2026-103252 is an authorization bypass vulnerability in the n8n workflow automation platform. The flaw resides in the credential test endpoint, which resolves project-scoped variables without validating caller access to the target project. An authenticated attacker can supply an arbitrary project ID in the request body, causing n8n to interpolate sensitive variables from projects the caller does not belong to. The attacker directs the resulting credential test request to a server they control, exfiltrating the interpolated secrets. The vulnerability is tracked as [CWE-639: Authorization Bypass Through User-Controlled Key].

Critical Impact

Low-privileged authenticated users can exfiltrate project-scoped variables, including credentials and secrets, from projects they are not authorized to access.

Affected Products

  • n8n versions before 1.123.80
  • n8n versions from 2.0.0 before 2.39.6
  • n8n versions from 2.40.0 before 2.40.1

Discovery Timeline

  • 2026-10-01 - CVE-2026-103252 published to NVD
  • 2026-10-01 - Last updated in NVD database

Technical Details for CVE-2026-103252

Vulnerability Analysis

n8n exposes a credential test endpoint used to validate stored credentials against external services. The endpoint accepts a project identifier and resolves project-scoped variables for interpolation into the outbound test request. The implementation does not verify that the authenticated caller is a member of the referenced project before performing variable resolution. As a result, a user with only basic authenticated access can request variable interpolation from projects they do not belong to.

Because credential tests issue outbound HTTP requests to targets specified in the credential configuration, an attacker can craft a credential pointing to an attacker-controlled host. When the server interpolates the stolen variables into headers, URLs, or request bodies, those values are transmitted to the attacker. This converts a server-side authorization gap into a reliable exfiltration channel for secrets stored as project variables.

Root Cause

The root cause is a missing authorization check on the project context parameter in the credential test handler. The server trusts the caller-supplied project ID as a lookup key for variable resolution rather than enforcing that the caller has access to that project. This pattern aligns with [CWE-639], where object references are controlled by the user without a corresponding access validation step.

Attack Vector

Exploitation requires network access to the n8n instance and low-privileged authenticated credentials. The attacker submits a credential test request containing a target project ID and a credential definition whose request parameters include references to project variables. The server resolves those variables under the specified project context and sends the fully populated request to the attacker's host. Captured request data reveals the interpolated secrets.

For a complete technical description, refer to the GitHub Security Advisory GHSA-7gvh-q9w3-wqqx and the VulnCheck Information Disclosure Advisory.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-103252

Indicators of Compromise

  • Credential test requests from low-privileged accounts referencing project IDs the account does not belong to.
  • Outbound HTTP connections from the n8n server to unrecognized or newly registered external hosts initiated by the credential test workflow.
  • Unusual volume of credential test invocations from a single user session within a short time window.

Detection Strategies

  • Review n8n application logs for credential test endpoint calls and correlate the projectId parameter with the caller's project memberships.
  • Monitor egress network traffic from n8n hosts for connections to non-sanctioned destinations, especially those carrying encoded or structured header values.
  • Audit credential definitions for request targets pointing to free-tier hosting, request-capture services, or recently registered domains.

Monitoring Recommendations

  • Centralize n8n audit and HTTP logs in a SIEM and alert on credential test calls that cross project boundaries.
  • Baseline normal credential test destinations per environment and alert on deviations.
  • Track creation of new credentials by non-administrative users and flag those used immediately in test calls.

How to Mitigate CVE-2026-103252

Immediate Actions Required

  • Upgrade n8n to version 1.123.80, 2.39.6, 2.40.1, or later depending on your release branch.
  • Rotate any project variables, API keys, tokens, and credentials that may have been exposed through the credential test endpoint.
  • Review user and project memberships to confirm least-privilege access to sensitive projects and variables.

Patch Information

The n8n maintainers addressed the vulnerability in versions 1.123.80, 2.39.6, and 2.40.1. The fix enforces that the authenticated caller has access to the project referenced during credential testing before resolving project-scoped variables. Patch metadata and version mappings are published in the GitHub Security Advisory GHSA-7gvh-q9w3-wqqx.

Workarounds

  • Restrict network egress from n8n hosts to an allowlist of approved destinations to limit exfiltration paths.
  • Temporarily limit credential creation and credential test permissions to trusted administrators until the patch is applied.
  • Remove or rotate highly sensitive values from project variables and move them to credentials with stricter scope where feasible.
bash
# Verify installed n8n version and upgrade
n8n --version
npm install -g n8n@1.123.80   # 1.x branch
npm install -g n8n@2.39.6     # 2.0.x - 2.39.x branch
npm install -g n8n@2.40.1     # 2.40.x branch

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.