n8n workflow editor can run code on the whole server

CriticalSE Fix-First Score 51/100CVE-2026-44789SE-AIV-01759Remote code executionAI apps and chat interfacesMade public 14 May 2026

Download as PDF

What this means

A person with permission to create or change workflows in n8n can run any code on the server. They could steal data, change settings, delete files, or take over other accounts. Any information stored in n8n or systems it connects to is at risk.

SecurityElites Manager Brief: the decision in one minute

An authenticated user can run code on your entire n8n server through a flaw in the HTTP Request node. This affects all versions before 1.123.43 (1.x line), 2.20.7 (2.0–2.20 line), and 2.22.1 (2.21–2.22 line). You must upgrade all instances immediately.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team responsible for n8n deployments.
Likely effortAbout 30 minutes per n8n instance: download the fixed version, upgrade the deployment, restart the service, and verify it works. Downtime depends on how the instance is set up and whether you can run a backup copy while upgrading.

Questions to ask your team or supplier

  • Which users currently have permission to create or edit n8n workflows, and do we trust all of them?
  • Do we have a backup of all n8n workflows and credentials, and have we tested that it can be restored?
  • Which external systems, APIs, or data sources does n8n connect to, and what would happen if an attacker had access to those connections?

Message you can forward to the owning team

Security notice: n8n workflow editor can run code on the whole server (CVE-2026-44789)

Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to n8n 2.22.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-44789-n8n-workflow-editor-can-run-code-on-the-whole/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01759

What is at stake in your AI setup

  • Keys for external AI providers: an attacker could use compromised credentials to call your AI APIs and run up charges or poison data.
  • Prompts and chat history: sensitive instructions and conversation data could be read or modified to change how AI assistants behave.
  • Connected tools and systems: if n8n workflows connect to other services (APIs, databases, file storage), an attacker could read or change that data.
  • Training or retrieval data: if workflows feed data into or pull from AI training pipelines, an attacker could inject or steal training material.

Map where your company uses AI

Who is exposed

  • n8n instances where any authenticated user can create or edit workflows
  • n8n instances where HTTP Request node is used in any workflow
  • Instances running versions 1.x before 1.123.43, 2.0.0-rc.0 through 2.20.6, or 2.21.0 through 2.22.0
  • Setups where n8n has access to sensitive systems or data sources

Upgrades you need

SoftwareAffected versionsMove to
n8n
npm
Every version before 1.123.43; 2.21.0 up to, but not including, 2.22.1; 2.0.0-rc.0 up to, but not including, 2.20.72.22.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.43, 2.20.7, 2.22.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 scaleYes, according to CISA
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Kind of coding mistake

  • CWE-1321: object prototypes can be polluted

If you cannot upgrade today

  • Until you can upgrade, limit workflow creation and editing permissions in Settings to trusted administrators only. Remove these permissions from regular users.
  • Disable the HTTP Request node entirely by setting `NODES_EXCLUDE='n8n-nodes-base.httpRequest'` and restarting n8n. This removes the attack path but may break existing workflows that rely on it.
  • These workarounds reduce risk but do not fully fix the vulnerability. Upgrade as soon as possible.

Signs it may already have been used against you

  • In n8n execution logs, look for workflows that use the HTTP Request node with unusual or complex parameter values, especially in pagination or URL parameters.
  • Check the audit log or activity log for workflows that were created or modified outside normal business hours or by users who do not usually create workflows.
  • Look for HTTP Request node calls that connect to unexpected external URLs or loop back to the n8n server itself.
  • Search for error messages related to prototypes or object properties in the n8n logs, which may indicate a failed exploitation attempt.

Log searches to start from

n8n HTTP Request node execution with unusual pagination parameters (adapt field names for your logs)Elastic

process:n8n AND node_name:httpRequest AND (pagination:* OR params:*pagination*) | stats count by user, timestamp, workflow_id

n8n workflow changes outside business hours (adapt field names for your logs)Splunk

sourcetype=n8n event_type=workflow_updated OR event_type=workflow_created earliest=-7d | where date_hour<6 OR date_hour>22 | table user, workflow_name, timestamp

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 n8n deployment in your company. Note the version number of each one (usually shown in the web interface under Settings or in the Docker container or npm package listing). Write down which one has the strictest user permissions and which one is used most.
  2. Check who can edit workflowsIn each n8n instance, go to Settings or Administration and check whether regular users or just admins can create and change workflows. If regular users can do this, that instance is higher risk.
  3. Back up your n8n dataExport all workflow definitions, credentials, and settings from each n8n instance. If you use a database backend (PostgreSQL, MySQL, etc.), take a database backup. This protects you if something goes wrong during the upgrade.
  4. Upgrade to the fixed versionFor each n8n instance, upgrade to version 1.123.43, 2.20.7, or 2.22.1 or later (use the same major version line you are on). Follow your deployment method: if you use npm, run `npm install -g n8n@1.123.43` (or the right version); if you use Docker, pull the new image tag and restart the container; if you use a hosted service, contact your provider or check the web interface for an upgrade button.
  5. Restart the serviceStop and start n8n, or restart the container or virtual machine. Wait for it to come back fully online (check the web interface and any health check endpoints). This can take a few minutes.
  6. Verify the upgradeOpen the n8n web interface and confirm the version number now shows 1.123.43, 2.20.7, 2.22.1, or higher. Check that all your workflows are still there and can be opened.
  7. Review access logs for signs of exploitationCheck n8n's execution logs and audit logs (if available) for unusual workflow executions or changes made in the last week. Look for workflows that call the HTTP Request node with strange parameters, or workflows that were created by users who do not normally create workflows.
  8. Consider stricter workflow permissionsIf your n8n instance allows non-admin users to create workflows, consider whether you can limit this to trusted users only. If the HTTP Request node is not needed, disable it by adding `n8n-nodes-base.httpRequest` to the `NODES_EXCLUDE` environment variable and restarting n8n.

How to confirm it is fixed: Open the n8n web interface, go to Settings, and confirm the version number is 1.123.43, 2.20.7, 2.22.1, or higher.

SecurityElites Quick Fixes: copy and paste

Upgrade n8n with npmupgrade

npm install n8n@2.22.1
npm ls n8n

Check n8n version on the command line (npm global install)for this issue

npm list -g n8n

Check n8n version inside a Docker containerfor this issue

docker exec <container_name> n8n --version

Disable HTTP Request node in environment variablesfor this issue

export NODES_EXCLUDE='n8n-nodes-base.httpRequest'

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-44789) 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.22.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.

If a workflow creator exploited this vulnerability, what could they access on our servers or connected systems?A good answer: They could read any data, files, or credentials stored on the n8n server or in systems it connects to, and modify or delete anything n8n has permission to access.
What is the difference between limiting workflow creation and disabling the HTTP Request node?A good answer: Limiting creation stops regular users from making new workflows but does not stop someone with admin access from using the node; disabling the node stops anyone from using it, but breaks workflows that rely on HTTP requests.
How would you know if someone had already exploited this before you upgraded?A good answer: Check n8n execution and audit logs for unusual workflows, HTTP Request nodes with strange parameters, or workflow changes by users who don't normally create them.
Which version should we upgrade to if we are on the 2.21.x release line?A good answer: Upgrade to 2.22.1 or later, because 2.21.0 through 2.22.0 are affected and only 2.22.1 and above in that line are fixed.

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 workflow editor can run code on the whole server (CVE-2026-44789)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01759 https://securityelites.com/ai-vulnerabilities/cve-2026-44789-n8n-workflow-editor-can-run-code-on-the-whole/

### Why this matters
A person with permission to create or change workflows in n8n can run any code on the server. They could steal data, change settings, delete files, or take over other accounts. Any information stored in n8n or systems it connects to is at risk.

### What to do
1. Find all n8n instances
2. Check who can edit workflows
3. Back up your n8n data
4. Upgrade to the fixed version
5. Restart the service
6. Verify the upgrade
7. Review access logs for signs of exploitation
8. Consider stricter workflow permissions

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-44789-n8n-workflow-editor-can-run-code-on-the-whole/

### Done when
- [ ] n8n is at 2.22.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Open the n8n web interface, go to Settings, and confirm the version number is 1.123.43, 2.20.7, 2.22.1, or higher.
- [ ] 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

  • 14 May 2026: Made public
  • 2 Dec 2026: Published

Official record

## Impact An authenticated user with permission to create or modify workflows could achieve global prototype pollution via an unvalidated pagination parameter in the HTTP Request node. Combined with other techniques this could lead to RCE on the instance.## Patches The issue has been fixed in n8n versions 1.123.43, 2.20.7, and 2.22.1. Users should upgrade to one of these versions or later to remediate the vulnerability.## Workarounds If upgrading is not immediately possible, administrators should consider the following temporary mitigations: - Limit workflow creation and editing permissions to fully trusted users only. - Disable the HTTP Request node by adding `n8n-nodes-base.httpRequest` to the `NODES_EXCLUDE` environment variable.These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Weakness type: CWE-1321

Use this record in your own tools

Get this record as JSON

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

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.