TOCTOU Race Condition in n8n Git Node's Clone Operation
CVE-2026-65598

8.9HIGH

Key Information:

Vendor

N8n-io

Status
Vendor
CVE Published:
22 July 2026

What is CVE-2026-65598?

An identified vulnerability in n8n affects its Git node's clone operation, where a TOCTOU (Time of Check to Time of Use) race condition allows authenticated users to exploit path validation mechanisms. By swapping a target directory with a symbolic link right after validation, an attacker can introduce a malicious repository into the community node directory. This manipulated repository is then loaded as a custom node during the next server restart, leading to the execution of arbitrary JavaScript code on both self-hosted and cloud instances.

Affected Version(s)

n8n 0 < 1.123.64

n8n 0 < 2.30.1

n8n 0 < 2.29.8

References

CVSS V4

Score:
8.9
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.