A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2025-62726

CVE-2025-62726: N8n Workflow Automation RCE Vulnerability

CVE-2025-62726 is a remote code execution vulnerability in N8n workflow automation that allows attackers to execute arbitrary code via malicious Git pre-commit hooks. This article covers technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-62726 Overview

CVE-2025-62726 is a remote code execution vulnerability in n8n, an open source workflow automation platform. The flaw affects the Git Node component in both Cloud and Self-Hosted deployments prior to version 1.113.0. An attacker who controls a remote Git repository can plant a malicious pre-commit hook. When an n8n user clones the repository and then invokes the Commit operation through the Git Node, the hook executes inside the n8n environment. This grants arbitrary code execution in the context of the n8n process, exposing stored credentials, workflows, and connected systems. The issue is tracked under [CWE-829: Inclusion of Functionality from Untrusted Control Sphere] and was fixed in n8n 1.113.0.

Critical Impact

Authenticated attackers can achieve remote code execution within the n8n environment by tricking users into committing to an attacker-controlled repository, compromising credentials and workflows.

Affected Products

  • n8n Self-Hosted versions prior to 1.113.0
  • n8n Cloud (pre-patch deployments)
  • Any n8n workflow leveraging the Git Node component

Discovery Timeline

  • 2025-10-30 - CVE-2025-62726 published to NVD
  • 2025-12-31 - Last updated in NVD database

Technical Details for CVE-2025-62726

Vulnerability Analysis

The Git Node in n8n wraps Git operations such as clone, add, and commit so workflows can interact with remote repositories. Git natively supports hook scripts stored under the .git/hooks/ directory of a cloned repository. A pre-commit hook runs automatically on the local machine each time git commit is invoked. Because the Git Node executed commit operations without disabling or sandboxing local hooks, scripts shipped inside a cloned repository ran with the privileges of the n8n process.

Exploitation requires an attacker to publish or modify a Git repository that an n8n workflow will clone, then wait for a Commit operation. The attack vector is network-based, requires low privileges on the n8n instance, and needs no user interaction beyond normal workflow execution. Successful exploitation yields confidentiality, integrity, and availability impact across the host, including access to stored API tokens, OAuth credentials, and database connections used by other workflows.

Root Cause

The root cause is the inclusion of functionality from an untrusted control sphere [CWE-829]. The Git Node trusted repository contents — including executable hook scripts — without enforcing core.hooksPath isolation or passing flags such as --no-verify to suppress hook execution during commits.

Attack Vector

An attacker stages a malicious repository containing a pre-commit hook with arbitrary shell commands. When an n8n user or workflow clones the repository and triggers the Commit operation in the Git Node, Git invokes the hook on the n8n host. The hook executes with the permissions of the n8n runtime, allowing credential theft, lateral movement, or workflow tampering. Technical details are available in the GitHub Security Advisory GHSA-xgp7-7qjq-vg47 and the fix commit.

Detection Methods for CVE-2025-62726

Indicators of Compromise

  • Presence of executable scripts under .git/hooks/ (notably pre-commit, post-commit, post-checkout) inside repositories cloned by n8n workflows.
  • Unexpected child processes spawned by the n8n process such as sh, bash, python, or node immediately following Git Node Commit operations.
  • Outbound network connections from the n8n host to unknown destinations shortly after a Git workflow runs.
  • Modifications to n8n credential stores or workflow definitions not tied to a known user action.

Detection Strategies

  • Audit n8n workflows that use the Git Node and inventory the remote repositories they interact with.
  • Monitor process ancestry on the n8n host for shells or interpreters launched as descendants of the n8n runtime.
  • Inspect n8n execution logs for Git Node operations correlated with anomalous file system or network activity.

Monitoring Recommendations

  • Enable verbose execution logging on n8n and forward events to a centralized SIEM for correlation.
  • Alert on the creation or modification of files under any .git/hooks/ path on the n8n host.
  • Track egress traffic from the n8n service account and baseline expected destinations for Git operations.

How to Mitigate CVE-2025-62726

Immediate Actions Required

  • Upgrade all n8n Self-Hosted instances to version 1.113.0 or later without delay.
  • Confirm n8n Cloud tenants are running the patched release and rotate any credentials referenced by Git workflows.
  • Review the list of repositories accessed by Git Node workflows and remove any from untrusted sources.
  • Run the n8n service under a least-privileged account isolated from sensitive host resources.

Patch Information

The vulnerability is fixed in n8n 1.113.0. The remediation is delivered in pull request #19559 and applied in commit 5bf3db5. Refer to the GitHub Security Advisory GHSA-xgp7-7qjq-vg47 for vendor guidance.

Workarounds

  • Restrict Git Node usage to vetted, internally controlled repositories until the patch is applied.
  • Disable Git hook execution globally on the n8n host by setting core.hooksPath to an empty directory for the n8n service user.
  • Run n8n inside a hardened container with read-only file systems and no outbound internet access where feasible.
bash
# Configuration example: disable Git hooks for the n8n service user
mkdir -p /opt/n8n/empty-hooks
sudo -u n8n git config --global core.hooksPath /opt/n8n/empty-hooks

# Verify the n8n package version after upgrade
npm list -g n8n | grep n8n@
# Expected: n8n@1.113.0 or later

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechN8n

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-829
  • Technical References
  • GitHub Pull Request #19559
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-xgp7-7qjq-vg47
  • Related CVEs
  • CVE-2026-42234: N8n Workflow Automation RCE Vulnerability

  • CVE-2026-42232: N8n Workflow Automation RCE Vulnerability

  • CVE-2026-42231: N8n Workflow Automation RCE Vulnerability

  • CVE-2026-33696: n8n Workflow Automation RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.

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