n8n Git node allows authenticated users to run arbitrary code

HighSE Fix-First Score 43/100CVE-2026-72767SE-AIV-01829Remote code executionAI softwareMade public 23 Jul 2026

Download as PDF

What this means

An attacker who can log into n8n and create workflows could run any command as the n8n process user, including stealing data, modifying workflows, or using the server to attack other systems. Both self-hosted and cloud n8n instances are at risk if users can access the Git node. The attacker needs valid login credentials and permission to create workflows, but then has full control of the host machine.

SecurityElites Manager Brief: the decision in one minute

Logged-in n8n users who can create workflows can run arbitrary code on your server. You need to upgrade to version 1.123.67, 2.31.5, 2.32.1 or later immediately, or disable the Git node as a temporary workaround. Both self-hosted and cloud instances are affected.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team (owns n8n infrastructure)
Likely effortAbout 30 minutes per n8n instance: check the current version, upgrade to the fixed version, and restart the service. If you have many instances or complex deployments, coordination with your DevOps team may add time.

Questions to ask your team or supplier

  • Who in your organization has permission to create and execute n8n workflows, and do all of them need that access?
  • Do you have a list of all n8n instances running in your environment, and do you know which versions they are on?
  • Are there any workflows in your n8n instances that use the Git node, and if so, what do they do and who created them?

Message you can forward to the owning team

Security notice: n8n Git node allows authenticated users to run arbitrary code (CVE-2026-72767)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to n8n 2.32.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-72767-n8n-git-node-allows-authenticated-users-to-run-arbitrary/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01829

What is at stake in your AI setup

  • Keys for external AI providers or APIs: an attacker could steal API keys stored in n8n credentials and use them to run up bills or access your AI models.
  • Workflow definitions and logic: an attacker could read, modify, or delete workflows that use AI services, disrupting automated processes.
  • Prompts and chat history: if workflows use OpenAI, Claude, or other chat APIs, an attacker could read the prompts and conversation history stored by n8n.
  • Connected tools and systems: an attacker could use the n8n process to interact with any external service (databases, APIs, webhooks) that n8n has credentials for.

Map where your company uses AI

Who is exposed

  • n8n instances version 1.123.66 or earlier
  • n8n instances version 2.0.0-rc.0 through 2.31.4
  • n8n instances version 2.32.0
  • Any n8n instance where non-admin users can create and execute workflows

Upgrades you need

SoftwareAffected versionsMove to
n8n
npm
Every version before 1.123.67; 2.32.0 up to, but not including, 2.32.1; 2.0.0-rc.0 up to, but not including, 2.31.52.32.1 or later

Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.67, 2.31.5, 2.32.1.

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-78: operating system commands can be injected

If you cannot upgrade today

  • Disable the Git node by setting the environment variable NODES_EXCLUDE=n8n-nodes-base.git and restarting all n8n instances. Remove this setting after you upgrade.
  • Restrict n8n login to fully trusted administrators only until you can upgrade. Remove any extra user accounts that do not have a business need.
  • Restrict network egress from the n8n host using firewall rules to limit what an attacker could do if they gain code execution.

Signs it may already have been used against you

  • Check the n8n audit log for Git node workflows created or executed by users other than administrators, especially around times when access control may have been weaker.
  • Look for unexpected child processes spawned by the n8n process user, particularly git commands or shell commands unrelated to normal n8n operation.
  • Review firewall or egress logs for unusual outbound connections from the n8n host that may indicate the attacker tried to call back or exfiltrate data.
  • Search for Git repository files or staged repositories on the n8n host file system that do not match your known workflow repositories.

Log searches to start from

Git node workflow executions (adapt source and sourcetype fields to your n8n logging)Splunk

source=n8n_audit action=workflow_executed node_type=git | stats count by user, workflow_name, timestamp

Child processes spawned by n8n user (adapt user field to your environment)Elastic

process.parent.name:node* AND process.user.name:n8n AND process.executable:(git OR bash OR sh OR curl)

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find all n8n instancesList every machine or container running n8n. Include self-hosted instances and check whether your company uses n8n cloud. For each one, note the hostname, IP address, and how it is deployed (Docker container, npm package, Kubernetes, etc.).
  2. Check the current n8n version on each instanceLog into each n8n instance as an administrator. Go to the Settings menu and look for the version number. Write down the exact version for each instance.
  3. Identify instances that need an upgradeCheck whether each instance is running version 1.123.67 or later, or version 2.31.5 or later, or version 2.32.1 or later. If not, it needs to be upgraded or mitigated immediately.
  4. Back up each vulnerable instanceBefore upgrading, make a backup of the n8n database and any workflow files. Follow your normal backup procedure for the deployment method you use (Docker volumes, database snapshots, etc.).
  5. Upgrade to the fixed versionFor each vulnerable instance, upgrade n8n to version 1.123.67, 2.31.5, or 2.32.1 or later, whichever matches your current release line. Use your normal deployment process (Docker image update, npm package update, etc.) and restart the service after the upgrade.
  6. Verify the upgrade was successfulLog back into each n8n instance and check that the version number in Settings now shows the fixed version. Confirm that workflows can still be created and executed.
  7. Review access controls and audit logsCheck who has permission to create and execute workflows. Review the n8n audit logs for any workflows created or executed by unexpected users during the time the instance was vulnerable.
  8. If you cannot upgrade immediately, apply a workaroundAs a temporary measure only, disable the Git node by setting the environment variable NODES_EXCLUDE=n8n-nodes-base.git on each vulnerable instance and restart the service. Or restrict login access to fully trusted administrators only. These do not fully fix the risk and must be replaced by an upgrade as soon as possible.

How to confirm it is fixed: Log into each n8n instance as an administrator and confirm in the Settings menu that the version is 1.123.67 or later (1.x line), 2.31.5 or later (2.x line), or 2.32.1 or later (2.32.x line).

SecurityElites Quick Fixes: copy and paste

Upgrade n8n with npmupgrade

npm install n8n@2.32.1
npm ls n8n

Check n8n version via API (requires valid login token)for this issue

curl -s -H 'X-N8N-API-KEY: YOUR_API_KEY' http://localhost:5678/api/v1/me | grep -i version

Disable Git node temporarily via environment variablefor this issue

export NODES_EXCLUDE=n8n-nodes-base.git

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (CVE-2026-72767) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - n8n (npm): must be 2.32.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the minimum n8n version that is safe from this vulnerability?A good answer: Version 1.123.67, 2.31.5, 2.32.1 or later; versions before those numbers in each release line are vulnerable.
What does an attacker need to have to exploit this, and what can they do if they succeed?A good answer: They need a valid n8n login and permission to create workflows; if they have those, they can run any command as the n8n process user.
If we cannot upgrade immediately, what is the best temporary protection?A good answer: Disable the Git node by setting NODES_EXCLUDE environment variable, or restrict login to administrators only; both are short-term only and must be replaced by an upgrade.
How would we know if someone exploited this vulnerability against us?A good answer: Look for Git node workflows created by unexpected users, unusual child processes spawned by n8n, outbound connections from the n8n host, or unauthorized Git repositories on the file system.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## n8n Git node allows authenticated users to run arbitrary code (CVE-2026-72767)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01829 https://securityelites.com/ai-vulnerabilities/cve-2026-72767-n8n-git-node-allows-authenticated-users-to-run-arbitrary/

### Why this matters
An attacker who can log into n8n and create workflows could run any command as the n8n process user, including stealing data, modifying workflows, or using the server to attack other systems. Both self-hosted and cloud n8n instances are at risk if users can access the Git node. The attacker needs valid login credentials and permission to create workflows, but then has full control of the host machine.

### What to do
1. Find all n8n instances
2. Check the current n8n version on each instance
3. Identify instances that need an upgrade
4. Back up each vulnerable instance
5. Upgrade to the fixed version
6. Verify the upgrade was successful
7. Review access controls and audit logs
8. If you cannot upgrade immediately, apply a workaround

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-72767-n8n-git-node-allows-authenticated-users-to-run-arbitrary/

### Done when
- [ ] n8n is at 2.32.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log into each n8n instance as an administrator and confirm in the Settings menu that the version is 1.123.67 or later (1.x line), 2.31.5 or later (2.x line), or 2.32.1 or later (2.32.x line).
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 22 Jul 2026: Made public
  • 2 Dec 2026: Published

Official record

## ImpactAuthenticated n8n users with rights to create and execute workflows could achieve code execution on the n8n host. Using the Git node, under the default `git` security settings, by staging a crafted local repository, an attacker could cause `git` to run hooks, executing arbitrary commands as the n8n process user.Both self-hosted and cloud instances are affected where authenticated users can create and execute workflows using the Git node.## PatchesThe issue has been fixed in n8n versions 1.123.67, 2.31.5, and 2.32.1. Users should upgrade to one of these versions or later to remediate the vulnerability.## WorkaroundsIf 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 limit the impact of arbitrary code execution.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Weakness type: CWE-78

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-72767

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.