Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

N8n: Duplicate Advisory: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution

0
High
Published: 07/22/2026 (07/22/2026, 12:32:18 UTC)
Source: GCVE Database
Product: n8n

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

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
Low
Subsq. Availability
Low
Scope
X
CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L/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

Affected software

npmghsa
n8n

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/23/2026, 00:11:14 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses