CVE-2026-65598
n8n before 1.123.64, 2.29.8, and 2.30.1 contains a TOCTOU race …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c
- www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone
- nvd.nist.gov/vuln/detail/CVE-2026-65598
- github.com/n8n-io/n8n/releases/tag/[email protected]
- github.com/n8n-io/n8n/releases/tag/[email protected]
- github.com/n8n-io/n8n/releases/tag/[email protected]
- github.com/advisories/GHSA-g3r5-9h93-4j2c
- nvd.nist.gov/vuln/detail/CVE-2026-65598
- cve.org/CVERecord?id=CVE-2026-65598
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.