CVE-2026-65598 Details
Description
n8n before 1.123.64, 2.29.8, and 2.30.1 contains a TOCTOU race condition in the Git node's clone operation that allows authenticated users to bypass path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This lets an attacker plant a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, executing arbitrary JavaScript on the server. Both self-hosted and cloud instances are affected.
A TOCTOU race condition vulnerability has been identified in n8n versions prior to 1.123.64, 2.29.8, and 2.30.1. The issue resides in the Git node's clone operation, where authenticated users can bypass path restrictions. Exploitation involves swapping a directory for a symlink after the path validation but before the cloning process is executed. This manipulation allows an attacker to place a crafted repository in the community node directory. Upon the next n8n restart, the repository is loaded as a custom node, executing arbitrary JavaScript on the server. This vulnerability affects both self-hosted and cloud instances of n8n.
Users should upgrade to n8n versions 1.123.64, 2.30.1, or 2.29.8. If an immediate upgrade is not possible, access to the n8n instance should be restricted to trusted users only, the Git node can be disabled by adding 'n8n-nodes-base.git' to the 'NODES_EXCLUDE' environment variable, and network egress from the n8n instance can be restricted to prevent connections to attacker-controlled git repositories.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c | [email protected] | MitigationVendor Advisory |
| https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| n8n n8n | < 1.123.64 >= 2.0.0, < 2.29.8 2.30.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 27, 2026 | Initial Analysis | [email protected] |
| Jul 22, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2026 | New CVE Received | [email protected] |