The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42227

CVE-2026-42227: N8n Workflow Automation Auth Bypass Flaw

CVE-2026-42227 is an authorization bypass vulnerability in N8n workflow automation that allows authenticated users to access variables from unauthorized projects. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 7, 2026

CVE-2026-42227 Overview

CVE-2026-42227 is an authorization bypass vulnerability in n8n, an open source workflow automation platform. The flaw exists in the public API variables endpoint, where the handler queries the variables repository directly without enforcing project membership checks. An authenticated user holding an API key scoped to variable:list can read variables from projects they do not belong to by supplying an arbitrary projectId query parameter. The vulnerability affects licensed enterprise and team deployments running multiple projects with the variables feature enabled. Patched releases are available in versions 1.123.32, 2.17.4, and 2.18.1.

Critical Impact

Authenticated attackers with low-privilege API keys can exfiltrate variables from projects they are not members of, potentially exposing credentials, tokens, or other sensitive data stored in n8n variables.

Affected Products

  • n8n Enterprise versions prior to 1.123.32
  • n8n versions prior to 2.17.4 (2.17.x branch)
  • n8n version 2.18.0 (fixed in 2.18.1)

Discovery Timeline

  • 2026-05-04 - CVE-2026-42227 published to NVD
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2026-42227

Vulnerability Analysis

The vulnerability is an Authorization Bypass Through User-Controlled Key issue, classified under [CWE-639]. n8n exposes a public API endpoint that returns variables associated with a project. Each authenticated request includes an API key with a defined permission scope. When a request reaches the variables endpoint with a projectId query parameter, the handler trusts that parameter and queries the variables repository directly.

The handler bypasses the authorization-aware service layer used by the internal enterprise controller. That service layer normally validates that the requesting user is a member of the target project before returning results. By skipping it, the public API path performs no project membership check. Any user with a valid API key carrying the variable:list scope can enumerate variables across every project in the deployment.

If operators stored credentials, API tokens, or other secrets in n8n variables, those values are exposed and must be rotated. The vulnerability does not permit modification or deletion of variables, limiting impact to confidentiality.

Root Cause

The public API variables handler invokes the repository layer directly instead of routing through the authorization-aware service used by the enterprise controller. Project membership enforcement was implemented at the service layer only, not at the data access layer.

Attack Vector

An attacker authenticates to the n8n public API with any valid API key holding the variable:list scope. The attacker then issues a GET request to the variables endpoint and supplies a projectId query parameter referencing a project they are not a member of. The server returns the requested project's variables without verifying membership. Discovery of project identifiers can be performed through enumeration or through other low-privilege API responses.

The vulnerability mechanism is described in the GitHub Security Advisory GHSA-756q-gq9h-fp22.

Detection Methods for CVE-2026-42227

Indicators of Compromise

  • Public API requests to the variables endpoint that include a projectId query parameter referencing projects the requesting API key owner is not a member of.
  • Spikes in variable:list API calls from a single API key across multiple distinct projectId values.
  • Access logs showing successful 200 responses on variables queries originating from non-administrative API keys.

Detection Strategies

  • Correlate API key identity with project membership records and alert when the two diverge for variables endpoint requests.
  • Review n8n audit logs for sequential or scripted enumeration of projectId parameters on the public API.
  • Compare service-layer vs repository-layer access patterns to surface paths that bypass authorization checks.

Monitoring Recommendations

  • Forward n8n application and reverse-proxy logs to a centralized SIEM and create rules for cross-project variable access.
  • Monitor outbound traffic from systems that previously had secrets stored in n8n variables for signs of credential reuse.
  • Track API key creation, scope assignment, and usage frequency to identify keys with anomalous variable enumeration patterns.

How to Mitigate CVE-2026-42227

Immediate Actions Required

  • Upgrade n8n to version 1.123.32, 2.17.4, or 2.18.1 depending on the deployed branch.
  • Rotate any credentials, tokens, or secrets that were stored in n8n variables, since exposure cannot be ruled out without log review.
  • Audit existing API keys and revoke any that hold the variable:list scope unnecessarily.

Patch Information

n8n released fixes in versions 1.123.32, 2.17.4, and 2.18.1. The patches route the public API variables handler through the authorization-aware service layer that enforces project membership. Refer to the n8n GitHub Security Advisory for release details.

Workarounds

  • Disable the variables feature on enterprise or team deployments until upgrades are applied.
  • Restrict the variable:list scope to API keys owned by trusted administrators only.
  • Place the n8n public API behind a reverse proxy that filters or denies requests carrying a projectId query parameter on the variables endpoint.
bash
# Upgrade n8n via npm to a patched release
npm install -g n8n@2.18.1

# Or pull a patched container image
docker pull n8nio/n8n:2.18.1
docker pull n8nio/n8n:2.17.4
docker pull n8nio/n8n:1.123.32

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechN8n

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-42226: N8n Auth Bypass Vulnerability

  • CVE-2026-42228: N8n Auth Bypass Vulnerability

  • CVE-2026-42230: N8n Auth Bypass Vulnerability

  • CVE-2026-33722: n8n Workflow Automation Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English