Time-of-check Time-of-use (TOCTOU) Race Condition in n8n - CVE-2026-71539

 

Time-of-check Time-of-use (TOCTOU) Race Condition in n8n - CVE-2026-71539

Published: July 8, 2026 / Updated: August 19, 2026


Vulnerability identifier: #VU137169
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-71539
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to a time-of-check time-of-use race condition in the Git node clone operation when cloning a repository. A remote user can swap a directory for a symlink after path validation to execute arbitrary code.

Exploitation requires the ability to create and run workflows using the Git node, and the planted repository is loaded as a custom node on the next restart.


Affected software

n8n

How to mitigate CVE-2026-71539

Install security update from vendor's website.

n8n - addressed in versions 1.123.64, 2.29.8, 2.30.1

External References

Related Security Bulletins