N8n: Duplicate Advisory: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution
A race condition vulnerability exists in the Git clone node of n8n before versions 1.123.64, 2.29.8, and 2.30.1. Authenticated users can exploit a time-of-check to time-of-use (TOCTOU) issue by replacing a directory with a symlink after path validation but before cloning. This allows planting a crafted repository that n8n loads as a custom node on restart, leading to arbitrary JavaScript execution on the server. Both self-hosted and cloud instances are affected. This advisory is a duplicate and has been withdrawn in favor of GHSA-g3r5-9h93-4j2c.
AI Analysis
Technical Summary
n8n versions prior to 1.123.64, 2.29.8, and 2.30.1 contain a TOCTOU race condition in the Git node's clone operation. The vulnerability allows authenticated users to bypass path restrictions by swapping a directory for a symlink after path validation but before the clone operation executes. This can lead to planting a malicious repository in the community node directory, which n8n loads as a custom node upon restart, resulting in arbitrary JavaScript code execution on the server. Both self-hosted and cloud deployments are impacted. The advisory is a duplicate and withdrawn, referencing GHSA-g3r5-9h93-4j2c for the original report.
Potential Impact
Exploitation of this vulnerability allows authenticated users to achieve remote code execution on the n8n server by planting malicious code that is executed on service restart. This compromises the integrity and security of the affected system, potentially allowing full control by an attacker. Both self-hosted and cloud instances are vulnerable, though no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory GHSA-g3r5-9h93-4j2c for current remediation guidance. Since this advisory is a duplicate and withdrawn, refer to the original advisory for official fixes or mitigations. Until patched, restrict authenticated user permissions to limit exposure and avoid restarting n8n instances after suspicious activity.
N8n: Duplicate Advisory: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution
Description
A race condition vulnerability exists in the Git clone node of n8n before versions 1.123.64, 2.29.8, and 2.30.1. Authenticated users can exploit a time-of-check to time-of-use (TOCTOU) issue by replacing a directory with a symlink after path validation but before cloning. This allows planting a crafted repository that n8n loads as a custom node on restart, leading to arbitrary JavaScript execution on the server. Both self-hosted and cloud instances are affected. This advisory is a duplicate and has been withdrawn in favor of GHSA-g3r5-9h93-4j2c.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
n8n versions prior to 1.123.64, 2.29.8, and 2.30.1 contain a TOCTOU race condition in the Git node's clone operation. The vulnerability allows authenticated users to bypass path restrictions by swapping a directory for a symlink after path validation but before the clone operation executes. This can lead to planting a malicious repository in the community node directory, which n8n loads as a custom node upon restart, resulting in arbitrary JavaScript code execution on the server. Both self-hosted and cloud deployments are impacted. The advisory is a duplicate and withdrawn, referencing GHSA-g3r5-9h93-4j2c for the original report.
Potential Impact
Exploitation of this vulnerability allows authenticated users to achieve remote code execution on the n8n server by planting malicious code that is executed on service restart. This compromises the integrity and security of the affected system, potentially allowing full control by an attacker. Both self-hosted and cloud instances are vulnerable, though no known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory GHSA-g3r5-9h93-4j2c for current remediation guidance. Since this advisory is a duplicate and withdrawn, refer to the original advisory for official fixes or mitigations. Until patched, restrict authenticated user permissions to limit exposure and avoid restarting n8n instances after suspicious activity.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-725q-c4vp-q4cg
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a6151349c2644c7f8da760a
Added to database: 07/22/2026, 23:24:36 UTC
Last enriched: 07/23/2026, 00:11:14 UTC
Last updated: 07/23/2026, 00:11:14 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.