Automation

Automation · n8n · Self-hosted security

n8n Security Check: Patch the 28 October 2026 Flaws (12 Advisories, 3 High) — Update to the Newest Release on Your Line Before You Harden Anything

First published 14 November 2026 · Updated on 14 November 2026 · Verified against n8n’s GitHub security advisories GHSA-9p7v-45m2-wxgj, GHSA-gx3v-3x3v-f8r5, GHSA-f2cw-9483-7vcp, GHSA-q8rc-7m84-mfvj, GHSA-m7qq-gm3x-v79g, GHSA-c772-hjfp-gfc2, GHSA-h59h-rf6m-7jp5 and GHSA-g333-hr44-g82p — each read in full on 14 November 2026 — plus a full-page read of the TrustList write-up of the 12-advisory batch and the Canadian Centre for Cyber Security advisory AV26-1103

Merroway Editorial · Verified against governing standards and vendor documentation.

On 28 October 2026 n8n published 12 security advisories for self-hosted instances — three rated High and nine Moderate. Two of the High flaws let a user who can build workflows break out of n8n’s isolation and run code on the server; the third, in the image library bundled with the official Docker image, can be reached by anyone who can send an image to a public webhook. Two of the three High flaws now carry CVE numbers, assigned after the batch was published — CVE-2026-119408 for the deprecated Code nodes and CVE-2026-126384 for GraphicsMagick — and n8n does not report exploitation — but the fix is an update, not a setting, and no amount of hardening removes the flaws while the old code is still running. Patch first. Then harden. And note the sting in the tail: a second batch landed on 13 November 2026, so the October version numbers below are a floor, not the finish — the newest release on your line is the real target.

The fast answer

If you self-host n8n, update it now. The 28 October 2026 batch is fixed in 2.45.5 (stable line), 2.46.1 (beta line), 3.0.1 (3.0 early access) and 1.123.89 (1.x, for the advisories that list a 1.x fix). But do not stop there: n8n published a second batch on 13 November 2026, and its owner-takeover flaw is fixed only in 2.47.6 / 2.48.3 / 3.2.2 — so update to the newest release on your line (the newest 2.x releases dated 13 November 2026 are 2.48.4 and 2.47.7). Back up first (database, .n8n data directory and your encryption key), update, check the version number, then replace the deprecated Function, Function Item and LangChain Code nodes, review custom roles and pending invitations, and only then do the hardening. n8n Cloud is patched automatically — this guide is for self-hosted instances only.

Advertisements

What you are looking at, in plain words

n8n is workflow automation that many small businesses run on their own server, and it stores the keys to everything it touches — email, CRM, payments, databases. Its advisories are published on GitHub, and on 28 October 2026 there were 12 of them at once: three High, nine Moderate. The Canadian Centre for Cyber Security listed the batch as advisory AV26-1103 on 29 October 2026. Here are the three High flaws, each verified against n8n’s own advisory page.

FlawWhat it lets an attacker doFixed in
Deprecated Code nodes
GHSA-9p7v-45m2-wxgj, CVSS 8.7, CVE-2026-119408
An authenticated user who can create or modify workflows uses the Function, Function Item or LangChain Code nodes to run code in n8n’s main process, outside the task-runner isolation that protects the current Code node.2.42.6, 2.43.3, 2.44.0 and 3.0.1 block the three nodes by default
Expression evaluation
GHSA-gx3v-3x3v-f8r5
An authenticated user who can create or modify workflows escapes the isolation applied to workflow expressions and runs code on the n8n host.1.123.89, 2.45.5, 2.46.1 and 3.0.1
GraphicsMagick
GHSA-f2cw-9483-7vcp, CVSS 7.7, CVE-2026-126384
The GraphicsMagick build bundled in the official n8n Docker image has known vulnerabilities; processing an untrusted image with the Edit Image node could lead to remote code execution. A workflow that passes images from an unauthenticated Webhook node to Edit Image puts this within reach of outsiders.1.123.89, 2.45.5, 2.46.1 and 3.0.1

Two details in the first row matter. First, the fix for the deprecated nodes is a block, not a repair: from the listed versions, saving a workflow that adds or changes one of the three nodes is rejected, while workflows already saved with them keep running unchanged. You still have to replace them (Fix 4). Second, the block can be switched off with N8N_DEPRECATED_NODES_BLOCK=false — which restores the vulnerable behaviour. Never set that.

The nine Moderate flaws, as summarised from n8n’s advisories: an unauthenticated callback in the end-user credential connect flow allowed OAuth account hijack; nodes that use credentials forwarded authentication headers when a request was redirected to another origin; the NocoDB node sent its API token to attacker-chosen hosts when downloading attachments; MCP OAuth dynamic client registration allowed an open redirect; the Browser Use upload tool could read arbitrary files from the server; the embedded Chat Trigger did not enforce n8n user authentication on every request; MongoDB node updates could change unintended documents; the OracleDB vector store node had a SQL injection through a metadata filter key; and an unauthenticated request could reset the Asana trigger’s webhook verification secret. They share the same fix: the update.

Do not stop at the October numbers. A second batch was published on 13 November 2026. Its two High flaws are confirmed on n8n’s own GitHub advisories: a custom instance role with user-management permissions could take over the owner account (GHSA-q8rc-7m84-mfvj, fixed in 2.47.6, 2.48.3 and 3.2.2), and a member who could list users could set the password of an account with a pending invitation and log in as that user — including as an admin, if the pending invitation had the admin role (GHSA-m7qq-gm3x-v79g, fixed in 1.123.90 and 2.14.0, so anyone on 2.14.0 or later already has that fix). The same batch contains three further Medium advisories, confirmed on n8n’s GitHub advisories: integration nodes sending authenticated requests to unintended API endpoints (GHSA-c772-hjfp-gfc2), trigger nodes using credentials at activation that the publisher cannot access (GHSA-h59h-rf6m-7jp5), and AWS Bedrock nodes skipping SSRF protection for custom runtime endpoints (GHSA-g333-hr44-g82p). The practical point stands either way: 2.46.1 covers the October batch but not the November one. Update to the newest release on your line.

One more thing the version numbers hide: the lines are not interchangeable. Version 3.0.1 is an early-access pre-release, published for Docker only and not on npm, with the stable 3.x release expected in early December 2026. Version 2.46.1 was the beta line when the October batch landed; the stable line’s fix was 2.45.5. If you are on stable 2.x, do not jump to 3.0.1 to “get the newest fix” — update on your own line, and read our live guide on the 3.0 upgrade before you ever move major versions.

Step 0 — Work out where you stand

Do not change anything yet. Run these five checks, in order, before you pick a fix:

  1. Find your version. The version is shown at the bottom left of the n8n window. Or, inside the container, run n8n --version — for example docker exec <your-container> n8n --version. Write the number down; it decides which row of the table below applies to you.
  2. Note how you run n8n. n8n Cloud, your own Docker Compose file, the one-line setup, or npm / npx: the update command is different for each, and the npm path ends at 3.0. Cloud is patched automatically — if you are on Cloud, skip the update and go straight to Fix 5’s role and invitation checks.
  3. Ask who can create or edit workflows. Two of the three High flaws need only an authenticated user with workflow-editing permission. Anyone untrusted with that access is inside the blast radius — that is the real risk while you are unpatched, and it is why the stopgaps in Fix 6 start with restricting access.
  4. Check for pending invitations and custom roles. Any invitation that has not been accepted yet, and any custom instance role carrying user-management permissions, is exposed to the 13 November flaws. Note them now; Fix 5 deals with them.
  5. Check for a webhook feeding Edit Image. Any workflow that takes an image from an unauthenticated Webhook node into the Edit Image node is the GraphicsMagick flaw’s reachable path. Note it now; Fix 6 tells you to deactivate it until you have updated.
YOUR INSTANCE, IN ONE SCREEN
VERSIONBottom left of the window, or n8n --version in the container
INSTALLCloud · Docker Compose · one-line setup · npm / npx — each updates differently
OCT FLOOR2.45.5 stable · 2.46.1 beta · 3.0.1 early access · 1.123.89 on 1.x
NOV FLOOR2.47.6 / 2.48.3 (or the newest on your line) — the 13 November batch
WHO EDITSAnyone untrusted who can create workflows is inside the blast radius

Drawn map — not a screenshot: the five facts that decide which fix versions apply to your instance.

Your lineOctober 28 batch — fixed in13 November batch — fixed in
Stable 2.x2.45.52.47.6 (or 2.48.3 on the newer line)
Beta 2.x2.46.12.48.3
3.x early access3.0.13.2.2
1.x1.123.89 *1.123.96 †

* Not every October advisory lists a 1.x fix — check your advisories against the version you run. † The 13 November 1.x release: GHSA-c772-hjfp-gfc2 and GHSA-h59h-rf6m-7jp5 both list 1.123.96 as the 1.x fix, and n8n’s 13 November community bulletin says “v1 patched in v1.123.96”; the pending-invite flaw was already fixed in 1.123.90. By 13 November 2026 the newest 2.x releases were 2.48.4 and 2.47.7; 2.46.7 was the stable release on 9 November 2026. Support for 1.x ends 31 December 2026, and there is no direct path from 1.x to 3.x.

The fixes, in order

  1. Back up before you touch anything. A complete n8n backup is three things together: the database, the .n8n data directory, and the encryption key (N8N_ENCRYPTION_KEY). Without the same key, the credentials in a restored database cannot be decrypted. Copy the backup off the server — a backup on the same disk as the database does not survive a disk failure. Also export portable copies from inside the container — the two export commands are in the command block below the fixes. The exports do not include execution history, users or settings, and the credentials stay encrypted, so they still need the same key to import. There is no rollback for an upgrade — going back means restoring this backup.
  2. Update to the newest release on your line. Check the release notes and breaking-changes notes for every version between yours and the target first — n8n’s own Docker image page says to do that before you upgrade. Then use the command for how you installed it — the commands are in the block below the fixes. Your own Docker Compose file: point the n8n image at the version you decided on (pin the exact tag, for example n8nio/n8n:2.47.7), then pull and recreate. A plain Docker install: pull the specific version, or the latest stable. A one-line install: the upgrade command. An npm install: update the global package — and plan the move to Docker while you are still on 2.x, because 3.0 no longer supports npm or npx installs. On Cloud, there is nothing to update; n8n patches it.
  3. Check the version number and restart cleanly. After the update, check the version at the bottom left of the window (or n8n --version in the container) and confirm it is at or above the floor for your line in the table above — October floor and November floor. Watch the container logs as it starts and confirm n8n comes up without errors. Then run a manual execution on your busiest workflows and check the output matches what the old version produced — especially anything with a Code node or an Edit Image node.
  4. Replace the deprecated Code nodes. The update only blocks the Function, Function Item and LangChain Code nodes from being added or changed; workflows already saved with them keep running. Open each affected workflow and replace them with the current Code node — Run Once for All Items mode replaces Function, Run Once for Each Item mode replaces Function Item. From version 2.39, Settings > Migration Report lists the affected workflows for you; work through it before you consider the job done. Do not switch the block off with N8N_DEPRECATED_NODES_BLOCK=false — that restores the vulnerable behaviour. If you are planning a move to 3.0 as well, read our live guide n8n 3.0 Is Coming — Check the Migration Report Before You Upgrade first: 3.0 removes those nodes entirely, along with 34 others, and there is no going back to 2.x.
  5. Close the 13 November holes: roles, invitations, owner 2FA. These are n8n’s own mitigations from the November advisories, and they apply on Cloud too. Remove user-management permissions from any custom instance role assigned to a user who is not fully trusted. Delete pending invitations that have not been accepted, and send new invitations only after upgrading. Enable two-factor authentication on the owner account. Then review who has an account at all — remove users promptly when they leave, because every account is a path to every credential the instance holds.
  6. Now harden — in this order, after patching. Restrict workflow creation and editing to fully trusted users only, and remove global:member access from anyone who is not fully trusted until the instance is patched. Add nodes you do not use to the NODES_EXCLUDE environment variable — the advisories name n8n-nodes-base.function, n8n-nodes-base.functionItem and @n8n/n8n-nodes-langchain.code for the deprecated nodes, and n8n-nodes-base.editImage if you do not need Edit Image. Deactivate any workflow that connects an unauthenticated Webhook node to an Edit Image node, and apply network-level controls to webhook endpoints that feed into Edit Image workflows. Check that port 5678, n8n’s default port, is not reachable from the internet — a reverse proxy terminating TLS should be the only way in — and confirm your encryption key (N8N_ENCRYPTION_KEY) is set explicitly and backed up, since it encrypts every stored credential. Rotating the credentials held by OAuth, NocoDB and other affected nodes is sensible where untrusted users could build workflows.
# Export every workflow and credential (inside the container) docker compose exec n8n n8n export:workflow --backup --output=/home/node/.n8n/export/workflows/ docker compose exec n8n n8n export:credentials --backup --output=/home/node/.n8n/export/credentials/ docker compose cp n8n:/home/node/.n8n/export ./n8n-export # Your own Compose file: point the n8n image at the version you want, then docker compose pull docker compose up -d # A plain Docker install: a specific version, or the latest stable docker pull docker.n8n.io/n8nio/n8n:2.47.7 docker pull docker.n8n.io/n8nio/n8n # Upgrade a one-line install to the latest version curl -fsSL https://get.n8n.io | sh -s -- --upgrade # An npm install (move to Docker before 3.0 — npm installs end there) npm update -g n8n
Advertisements

Prove it worked

Open n8n and check the version at the bottom left of the window: it must be at or above the November floor for your line (2.47.6 or later on 2.x — 2.48.3 on the newer line, 3.2.2 on 3.x, 1.123.96 on 1.x). Run your busiest workflows by hand and confirm the outputs match. Then prove the block works: open a test workflow, try to add a Function node, and confirm saving is rejected. Check Settings > Users: no pending invitations you do not recognise, no custom role carrying user-management permissions for someone who should not have it, and two-factor authentication on for the owner account. Only when the version is past both batches, the deprecated nodes are gone from your saved workflows, and the role and invitation checks are clean is the job done.

Still not working? Work this ladder in order

The version still shows the old number after the update. You pulled the wrong tag, or the Compose file still pins the old tag, or the container was never recreated. Check the image tag in your Compose file, run docker compose pull and then docker compose up -d, and check the version again. Pulling latest without pinning a tag can also land you on a different line than the one you meant to be on.

A workflow fails after the update. Check the executions log for the error, then open Settings > Migration Report (version 2.39 or later) and work through what it flags for that workflow. If the workflow is broken beyond a quick fix, restore from the backup you took in Fix 1 and plan the update again — do not downgrade by changing the tag and hoping the database tolerates it.

You cannot update right now. Apply the stopgaps from the advisories as a holding position: restrict n8n access to fully trusted users only, add the deprecated nodes and Edit Image to NODES_EXCLUDE if unused, deactivate any workflow feeding an unauthenticated webhook into Edit Image, remove global:member from untrusted users, delete pending invitations, and turn on two-factor authentication for the owner account. n8n says plainly that these workarounds do not fully remove the risk — they buy time, they are not the fix. Schedule the update, do not leave it open-ended.

You are on 1.x and cannot move yet. Update to 1.123.89 at minimum, and to 1.123.96 for the November batch. Then plan the 1.x-to-2.x move before 31 December 2026, when 1.x support ends — there is no direct path from 1.x to 3.x, so 2.x is the required middle step. Our live 3.0 upgrade guide covers the order.

You are on n8n Cloud and still worried. Cloud is patched automatically, so the flaws themselves are not your job. Your job is Fix 5: custom roles, pending invitations and owner two-factor authentication — those are about who can get into your instance, and patching does not do them for you.

None of these fits. Take the exact version number, the install type, and the exact wording of what you see to n8n’s GitHub security advisories page — the advisories this guide is built on are the source of truth for which versions fix which flaw.

Mistakes that make it worse

  • Hardening first and patching second — the flaws let workflow editors run code on the host, and no setting removes them while the old code is running.
  • Updating to 2.46.1 and stopping — that covers the October batch, not the 13 November owner-takeover flaw, which needs 2.47.6 or later.
  • Setting N8N_DEPRECATED_NODES_BLOCK=false to keep old workflows editable — it restores the vulnerable behaviour.
  • Jumping from stable 2.x to 3.0.1 for the “newest” fix — 3.0.1 is early access, Docker-only and not on npm, with the stable 3.x release expected in early December 2026. Update on your own line, and read the Migration Report before any major-version move.
  • Updating without a backup — there is no rollback; going back means restoring the database, the .n8n directory and the encryption key together.
  • Treating CVE-2026-1470 as this batch — that flaw was disclosed on 27 January 2026, is a different expression-sandbox issue, and is fixed in 1.123.17 / 2.4.5 / 2.5.1. It is not one of the October advisories.
  • Assuming n8n Cloud needs this update — Cloud is patched automatically. The Cloud job is the role, invitation and two-factor checks in Fix 5.
  • Leaving a workflow that feeds an unauthenticated webhook into Edit Image running while unpatched — that is the GraphicsMagick flaw’s reachable path.

Frequently asked questions

Am I affected if I use n8n Cloud?

No — not by these flaws. n8n Cloud is run by n8n and patched automatically, so the October and November batches do not need an update from you. This guide is for self-hosted instances only. On Cloud, the work that still belongs to you is the access hygiene in Fix 5: custom roles with user-management permissions, pending invitations, and two-factor authentication on the owner account.

Which version do I actually need?

The newest release on your line. The October batch is fixed in 2.45.5 (stable), 2.46.1 (beta), 3.0.1 (3.0 early access) and 1.123.89 (1.x, for the advisories that list a 1.x fix). The November batch needs more: 2.47.6 or 2.48.3 on 2.x, 3.2.2 on 3.x, and 1.123.96 on 1.x. The newest 2.x releases dated 13 November 2026 are 2.48.4 and 2.47.7, so updating to the newest release on your line covers both batches at once.

I updated to 2.46.1 — am I done?

No. Version 2.46.1 covers the October batch, but the 13 November batch’s owner-takeover flaw (GHSA-q8rc-7m84-mfvj) is fixed only in 2.47.6, 2.48.3 and 3.2.2. If you stopped at 2.46.1, update again to the newest release on your line and then work through Fix 5’s role and invitation checks.

Will the update break my workflows?

Workflows already saved with the deprecated Function, Function Item or LangChain Code nodes keep running after the update — the fix blocks saving new or changed workflows that use them, it does not delete them. You still have to replace those nodes with the current Code node, because they stay vulnerable while they exist in a saved workflow, and 3.0 removes them entirely. Back up first, update, then run your busiest workflows by hand and check the outputs match.

What if I cannot update right now?

Use n8n’s own stopgaps as a holding position: restrict access to fully trusted users only, add the deprecated nodes and Edit Image to the NODES_EXCLUDE environment variable if you do not use them, deactivate any workflow that feeds an unauthenticated webhook into Edit Image, remove global:member access from users who are not fully trusted, delete pending invitations, and enable two-factor authentication on the owner account. n8n says plainly that these workarounds do not fully remediate the risk — they buy time, they are not the fix.

Is there a CVE number for the October flaws?

Yes — for two of the three High flaws. CVE numbers were assigned after the batch was published: CVE-2026-119408 for the deprecated Code nodes (GHSA-9p7v-45m2-wxgj) and CVE-2026-126384 for GraphicsMagick (GHSA-f2cw-9483-7vcp). No CVE was found for the expression-isolation flaw (GHSA-gx3v-3x3v-f8r5) as of 14 November 2026, and n8n does not report exploitation. The advisories are still tracked by their GHSA identifiers. Do not confuse this batch with CVE-2026-1470, a different expression-sandbox flaw disclosed on 27 January 2026.

Do I need to rotate credentials after updating?

It is sensible where untrusted users could build workflows. The October batch includes flaws that could expose credentials — OAuth account hijack through the credential connect flow, credentials forwarded on redirect, and the NocoDB node sending its API token to attacker-chosen hosts — so if anyone untrusted had workflow access while you were unpatched, rotate the credentials those workflows hold, starting with OAuth and NocoDB, and review the execution history for anything you do not recognise.

Sources

n8n GitHub security advisories — GHSA-9p7v-45m2-wxgj: Deprecated Code Nodes Allow Code Execution in the n8n Main Process (28 October 2026) · GHSA-gx3v-3x3v-f8r5: Insufficient Isolation in Workflow Expression Evaluation (28 October 2026) · GHSA-f2cw-9483-7vcp: Insecure GraphicsMagick Configuration (28 October 2026) · GHSA-q8rc-7m84-mfvj: Custom Instance Role with User Management Permissions Gives Control of the Owner Account (13 November 2026 batch) · GHSA-m7qq-gm3x-v79g: Invitation Acceptance Endpoint Lets a Member Take Over Pending User Accounts (13 November 2026 batch) · GHSA-c772-hjfp-gfc2: Integration Nodes Send Authenticated Requests to Unintended API Endpoints (13 November 2026 batch) · GHSA-h59h-rf6m-7jp5: Workflow Activation Allows Trigger Nodes to Use Credentials the Publisher Cannot Access (13 November 2026 batch) · GHSA-g333-hr44-g82p: AWS Bedrock Nodes Skip SSRF Protection for Custom Runtime Endpoints (13 November 2026 batch) — each advisory page read in full on 14 November 2026. TrustList — n8n fixes 12 flaws, three high, including code execution escapes (full page read 14 November 2026; the 12-advisory / 3-High / 9-Moderate count, the nine Moderate summaries, the no-reported-exploitation statement, and the Cloud auto-patch note — its 28 October “no CVE numbers” line is now out of date: CVE-2026-119408 was published 30 October 2026 and CVE-2026-126384 on 13 November 2026). CVE records (OSV / NVD) — CVE-2026-119408, published 30 October 2026, names GHSA-9p7v-45m2-wxgj as the vendor advisory; CVE-2026-126384, published 13 November 2026, names GHSA-f2cw-9483-7vcp. Canadian Centre for Cyber Security — n8n security advisory AV26-1103, 29 October 2026 (corroborates the batch and its date; read live 14 November 2026). n8n Docker Hub image page — n8nio/n8n (update commands: pull latest, pull a specific version, Docker Compose pull). Merroway — n8n 3.0 Is Coming — Check the Migration Report Before You Upgrade (live guide; backup triad and export commands, Migration Report from 2.39, 1.x support ends 31 December 2026, no direct 1.x-to-3.x path, 3.0 Docker-only). Side note, named secondary reads only: the 13 November batch was first reported by a single third-party tracker (pranavaraparla.com, refreshed 13 November 2026) — its two High entries and its three Medium entries were then confirmed on n8n’s own GitHub advisories above, each read in full on 14 November 2026. The newest-release dates (2.48.4 and 2.47.7 on 13 November 2026; 2.46.7 stable on 9 November 2026) come from independent release trackers. The CVE-2026-1470 disclosure date (27 January 2026) comes from JFrog Research and Snyk. The Power Automate developer-environment guide is not yet published and is not linked.

Verification note: the eight GitHub advisory pages above were each read in full on 14 November 2026. The GitHub advisories list page itself returned a fetch-service rate limit (429) and was not used; the 12-advisory count and the nine Moderate summaries rest on the full-page TrustList read, corroborated by the 31 October 2026 n8n weekly roundup and the Canadian Centre for Cyber Security advisory AV26-1103. Every load-bearing claim — the batch date and count, the three High flaws and their fixed versions, the November batch’s two High flaws and three Medium flaws and their fixed versions, the Cloud auto-patch, and the update commands — is quoted from those pages, not from a search snippet. The title names no version numbers: the October batch’s fix versions (3.0.1 / 2.46.1) are a floor, and the guide’s target is the newest release on your line, because the 13 November batch raised the floor. The 1.x November floor (1.123.96) is confirmed by the patches sections of GHSA-c772-hjfp-gfc2 and GHSA-h59h-rf6m-7jp5 and by n8n’s 13 November community bulletin (“v1 patched in v1.123.96”).