Time-of-check Time-of-use (TOCTOU) Race Condition Affecting n8n-nodes-base package, versions <1.121.40>=2.0.0-rc.0 <2.29.7>=2.30.0 <2.30.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-N8NNODESBASE-18343350
  • published28 Jul 2026
  • disclosed22 Jul 2026
  • creditUnknown

Introduced: 22 Jul 2026

NewCVE-2026-65598  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade n8n-nodes-base to version 1.121.40, 2.29.7, 2.30.1 or higher.

Overview

n8n-nodes-base is a Base nodes of n8n

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via a race condition in the clone action. An attacker can execute arbitrary code on the server by exploiting a time-of-check to time-of-use (TOCTOU) issue, swapping a directory for a symlink after path validation but before the clone operation, which results in a crafted repository being loaded and executed as a custom node on the next restart.

Workaround

This vulnerability can be mitigated by restricting instance access to fully trusted users, disabling the Git node by adding n8n-nodes-base.git to the NODES_EXCLUDE environment variable, or restricting network egress to prevent connections to attacker-controlled repositories.

References

CVSS Base Scores

version 4.0
version 3.1