8.9high
n8n before 1.123.64 Remote Code Execution via Git Clone
- Severity
- 8.9high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-g3r5-9h93-4j2c
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| n8n-io n8n | before 1.123.64, from 2.30.0 before 2.30.1, from 2.0.0-rc.0 before 2.29.8 Not affected: 1.123.64, 2.30.1, 2.29.8 | CVE List |
| n8n (npm) | before 1.123.64, from 2.30.0 before 2.30.1, from 2.0.0-rc.0 before 2.29.8 | GitHub Advisory Database |
| n8n n8n | before 1.123.64, from 2.0.0 before 2.29.8, 2.30.0 | NVD |
All scores
| VulnCheck | 8.9high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
A TOCTOU race condition in the Git node's clone operation lets an authenticated user bypass its path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This plants a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, and since nodes execute JavaScript, this yields arbitrary code execution on the server.
Both self-hosted and cloud instances are affected, where authenticated users can create and run workflows using the Git node.
Patches
Users should upgrade to the patched version once available to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Restrict n8n instance access to fully trusted users only.
- Disable the Git node by adding
n8n-nodes-base.gitto theNODES_EXCLUDEenvironment variable. - Restrict network egress from the n8n instance to prevent connections to attacker-controlled git repositories.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
NVD (es)
n8n antes de 1.123.64, 2.29.8 y 2.30.1 contiene una condición de carrera TOCTOU en la operación de clonación del nodo Git que permite a usuarios autenticados eludir las restricciones de ruta intercambiando un directorio por un enlace simbólico después de que la ruta es validada pero antes de que se ejecute la clonación. Esto permite a un atacante colocar un repositorio manipulado en el directorio de nodos de la comunidad, que n8n carga como un nodo personalizado en el siguiente reinicio, ejecutando JavaScript arbitrario en el servidor. Tanto las instancias autoalojadas como las de la nube se ven afectadas.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-65598 changed 2026-10-29 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g3r5-9h93-4j2c changed 2026-08-19 | CC-BY-4.0 |
| NVD | CVE-2026-65598 changed 2026-10-29 | Public domain |