Time-of-check Time-of-use (TOCTOU) Race Condition Affecting n8n-core package, versions <1.122.12>=2.0.0 <2.4.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th 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 Learn

Learn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-N8NCORE-15223381
  • published5 Feb 2026
  • disclosed4 Feb 2026
  • creditThéo Lelasseux

Introduced: 4 Feb 2026

CVE-2026-25052  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade n8n-core to version 1.122.12, 2.4.4 or higher.

Overview

n8n-core is a Core functionality of n8n

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via improper file access controls in the workflow creation or modification process. An attacker can modify sensitive host system files, including configuration data, and obtain user credentials by leveraging permissions to create or modify workflows. This can result in complete account takeover of any user on the instance.

Workaround

This vulnerability can be mitigated by limiting workflow creation and editing permissions to fully trusted users only, and restricting access to nodes that interact with the file system, particularly the "Read/Write Files from Disk" and "Git" nodes.

References

CVSS Base Scores

version 4.0
version 3.1