CVE-2026-71539: n8n: Race Condition in Git Clone Node Allows Authenticated Users to Achieve Remote Code Execution

Published Jul 22, 2026
·
Updated

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.

Other sources

n8n is an open source workflow automation platform. Prior to 1.123.64, 2.29.8, and 2.30.1, the Git node clone operation allows an authenticated workflow user to swap a validated directory for a symlink before cloning, planting a crafted repository in the community node directory that loads as a custom JavaScript node after restart and executes arbitrary code on the server. This issue is fixed in versions 1.123.64, 2.29.8, and 2.30.1.

— MITRE

Affected Software

1 affected component
n8n<1.123.64, =2.29.8, =2.30.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 1.123.64
  2. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.29.8
  3. Upgrade

    Upgrade n8n to a version that resolves this vulnerability.

    Fixed in 2.30.1

Event History

Jul 22, 2026
CVE Published
via OSV·11:21 AM
Data Sourced
via OSV·11:21 AM
DescriptionSeverityWeakness
Aug 18, 2026
CVE Published
via MITRE·02:43 PM
Data Sourced
via MITRE·02:43 PM
DescriptionWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which users can exploit this issue, and what is the impact?

Authenticated workflow users who can use the Git node's clone operation are the relevant threat population. Successful exploitation can result in arbitrary code execution on the n8n server after it is restarted.

2

What does an attacker need to do to exploit the race condition?

The attacker must win a race to replace a directory that has already been validated with a symlink during a Git clone operation, then plant a crafted repository in the community node directory. The planted content is loaded as a custom JavaScript node after restart.

3

Which versions remediate the vulnerability?

Upgrade n8n to 1.123.64, 2.29.8, or 2.30.1, depending on the release line in use. These versions contain the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203