CVE-2026-65598
JSON

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 packageVersionsReported by
n8n-io n8nbefore 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.8GitHub Advisory Database
n8n n8nbefore 1.123.64, from 2.0.0 before 2.29.8, 2.30.0NVD

All scores

VulnCheck8.9high CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-367

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.git to the NODES_EXCLUDE environment 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

SourceRecordLicence
CVE ListCVE-2026-65598 changed 2026-10-29CVE Terms of Use
GitHub Advisory DatabaseGHSA-g3r5-9h93-4j2c changed 2026-08-19CC-BY-4.0
NVDCVE-2026-65598 changed 2026-10-29Public domain