n8n workflow editor can run code on the whole server
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 Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team responsible for n8n deployments. |
| Likely effort | About 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-01759What 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.
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
| Software | Affected versions | Move 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.7 | 2.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 attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Total 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_idn8n 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, timestampWritten 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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 n8nCheck n8n version on the command line (npm global install)for this issue
npm list -g n8nCheck n8n version inside a Docker containerfor this issue
docker exec <container_name> n8n --versionDisable 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_IMAGETest 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.
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.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n OAuth registration accepts unlimited field sizes, filling the database High · CVE-2026-86075
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
The same kind of mistake in other AI tools
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
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-44789For 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.