Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2025-62726

CVE-2025-62726: n8n Vulnerable to Remote Code Execution via Git Node Pre-Commit Hook

October 30, 2025

A remote code execution vulnerability exists in the Git Node component available in both Cloud and Self-Hosted versions of n8n. When a malicious actor clones a remote repository containing a pre-commit hook, the subsequent use of the Commit operation in the Git Node can inadvertently trigger the hook’s execution.

This allows attackers to execute arbitrary code within the n8n environment, potentially compromising the system and any connected credentials or workflows.

All users with workflows that utilize the Git Node to clone untrusted repositories are affected.

References

  • github.com/advisories/GHSA-xgp7-7qjq-vg47
  • github.com/n8n-io/n8n
  • github.com/n8n-io/n8n/commit/5bf3db5ba84d3195bbe11bbd3c62f7086e090997
  • github.com/n8n-io/n8n/pull/19559
  • github.com/n8n-io/n8n/security/advisories/GHSA-xgp7-7qjq-vg47
  • nvd.nist.gov/vuln/detail/CVE-2025-62726

Code Behaviors & Features

Detect and mitigate CVE-2025-62726 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.113.0

Fixed versions

  • 1.113.0

Solution

Upgrade to version 1.113.0 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

npm/n8n/CVE-2025-62726.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 03 Nov 2025 12:19:50 +0000.