n8n Security Vulnerabilities 2026: Fixes and Self-Hosted Checks

The n8n vulnerabilities that matter in 2026, which versions fix them, and how to secure a self-hosted instance today.

Illustration comparing an unpatched, vulnerable n8n server to a patched, secure one

Updated on: 31 October 2026. Added the October 28 advisory batch; the snapshot now includes advisories through 28 October, checked 31 October 2026.

Originally published 1 September 2026. Last reviewed 31 October 2026 against the official GitHub advisories linked below. This is a selected advisory review, not a complete security assessment.

Quick answer: Check your installed n8n version against the advisory for the feature you use. The October 14 webhook-response and credential-error advisories list fixes in 1.123.85, 2.43.5 and 2.44.1. The Data Tables cross-project issue lists 2.43.5 and 2.44.1. These are fixes for specific issues, not a promise that a version is safe against every advisory. Use the official links below before choosing an update.

The October 28 advisory batch is covered below, in the 28 October 2026 advisories section.

Use this as a self-hosted checklist: version, public entry points, editors, credentials, and a tested restore — in that order.

n8n security vulnerabilities affect different versions and configurations. To check a self-hosted instance, record its installed version, read the relevant official advisory and compare the affected range with the features your workflows use. A headline or one old patch number is not enough.

This guide gives you a practical n8n self-hosted security checklist: patch checks, workflow exposure, access, credentials and restore testing. It does not certify an instance as secure or claim that every deployment is exposed to every advisory.

Which n8n version should you run?

Use a supported release that fixes the advisories relevant to your deployment. Do not stop at an October 1 patch number: newer notices were published on October 14. This snapshot records three of them, checked on October 20, 2026.

IssueListed fixesWhat to review
Data Tables project access — GHSA-wvjj-qg37-pv732.43.5 and 2.44.1A workflow creator could access rows across projects. Check workflow-editor access and the advisory.
Webhook response sandbox — GHSA-mp7q-23hg-35cf1.123.85, 2.43.5 and 2.44.1Some response paths could serve HTML on the n8n origin without the sandbox policy.
Credential secrets in errors — GHSA-qmvv-q3c9-wpp71.123.85, 2.43.5 and 2.44.1Failed Git, MongoDB Atlas Vector Store and Google Cloud Storage operations could expose credential secrets in execution data.

Read each advisory’s affected range and patch instructions. A fix for one issue does not cover every other issue or repair an unsafe workflow. This guide does not test exploits against your instance.

28 October 2026 advisories

On 28 October 2026, n8n published a new batch of security advisories. This is a selected advisory review, not a complete security assessment. This batch is separate from the October 14 batch above: a fix for one issue does not cover every other issue, and patching does not repair an unsafe workflow. Check each advisory’s affected range against the features your workflows use.

IssueGHSA IDSeverityListed fixes
SQL injection via metadata filter key in the Vector Store (OracleDB) nodeGHSA-2×68-96jw-5r6cModerate2.43.5, 2.44.1, 3.0.1 or later
Deprecated Code nodes allow code execution in the n8n main processGHSA-9p7v-45m2-wxgjHigh2.42.6, 2.43.3, 2.44.0, 3.0.1 or later
Asana Trigger: unauthenticated request can reset webhook verification secretGHSA-mx4r-96jx-v278Moderate2.38.0, 3.0.1 or later
MongoDB node update operations can modify unintended documentsGHSA-4v22-g448-h4rgModerate1.123.89, 2.45.5, 2.46.1, 3.0.1 or later
Insecure GraphicsMagick configurationGHSA-f2cw-9483-7vcpHigh1.123.89, 2.45.5, 2.46.1, 3.0.1 or later
OAuth account hijack in the end-user credential connect flow via unauthenticated callbackGHSA-426f-xmcv-g8pgModerate2.45.5, 2.46.1, 3.0.1 or later
Open redirect via MCP OAuth dynamic client registrationGHSA-rc3w-8jc8-7x3wModerate1.123.89, 2.45.5, 2.46.1, 3.0.1 or later
Browser Use upload tool reads arbitrary files from the n8n serverGHSA-9qx8-fhxv-w794Moderate2.45.5, 2.46.1, 3.0.1 or later
Credential-using nodes forward authentication headers on cross-origin redirectsGHSA-prmc-fg87-r4ghModerate2.45.5, 2.46.1, 3.0.1 or later
Chat Trigger embedded chat does not enforce n8n user auth on all requestsGHSA-pwj5-wwm6-g83jModerate1.123.89, 2.45.5, 2.46.1, 3.0.1 or later

What is CVE-2026-21858 in n8n?

CVE-2026-21858 is the critical file-access issue disclosed on January 7, 2026. n8n lists versions 1.65.0 up to, but not including, 1.121.0 as affected. Certain form-based workflows could let an unauthenticated attacker read server files. Version 1.121.0 fixed this issue.

That January fix is historical context, not today’s update target. Later advisories require newer patches. If you may have been exposed, review the relevant execution history and connected credentials as part of your incident process; updating alone does not undo earlier access.

2026 advisories by what they put at risk

AreaAdvisorySeverityPublished
ApprovalsGHSA-728h-pmr2-7cgh: Send-and-Wait HMAC bypass allows unauthenticated approval of waiting executionsHigh30 Sep
ApprovalsGHSA-597w-c3jh-g8fg: path traversal in signed resume URL generation enables cross-project approval forgeryHigh16 Sep
ApprovalsGHSA-p3pg-xw4f-m72c: cross-user agent chat resume hijacks another user’s pending tool approvalModerate30 Sep
CredentialsGHSA-9rhv-fhr8-7q5r: inline Agent node-tool introspection decrypts any instance credential without ownership checkHigh16 Sep
CredentialsGHSA-r6g9-5cpp-ppwr, GHSA-x25p-9mr6-cwgp: shared-workflow credential checks miss nested, inline and agent-parameter credentialsHigh30 Sep
InjectionGHSA-5qpp-pqww-h7fp: SQL injection in the Microsoft SQL node Query field; GHSA-4wf3-rgqr-xcp3 (Oracle); GHSA-xrqg-3xcp-h45x (Supabase); GHSA-w24g-6454-7w7f (MongoDB Chat Memory)High16-30 Sep
Code execution / takeoverGHSA-x8wx-g24x-3549: code execution in the Git node log operation; GHSA-5jr4-xmvf-frmj: prototype mutation in the MCP workflow-validation interpreter allows owner account takeoverHigh30 Sep
Cross-site scriptingGHSA-29xw-66fq-4xc3, GHSA-x5cw-hm7v-q7mj, GHSA-c2wp-6fgc-xjq4High / Moderate16-30 Sep

n8n’s 16 September batch was fixed in 1.123.80, 2.39.6 and 2.40.1. The 1 October batch used fixes 1.123.83, 2.41.4 and 2.42.1; the October 14 notices above require newer fixes. This table is a selection, not the full list.

A patched engine can still have unsafe workflow settings. Confirm current advisories and release notes using the n8n security advisories category and the GitHub advisories. Upgrade steps are in the n8n update guide.

Quick check: what to review first

CheckRecordNext step
Installed versionVersion running on the main instance and workersCompare it with relevant affected and patched ranges
Public entry pointsForms, webhooks, chat endpoints and the editorReview authentication, input validation and exposure
Workflow editorsWho can build, edit and run workflowsLimit access to people with a legitimate need
Connected credentialsApps and permissions each workflow can useReduce scopes and remove unused connections carefully
RecoveryDatabase, configuration and encryption-key backupTest restoration in a separate environment

Read an n8n advisory against your own setup

Start with n8n’s official security advisories. For each relevant notice, record the affected package, version range, required permissions, vulnerable feature, fixed versions and any temporary mitigation. Do not treat a mitigation as a permanent substitute for patching.

A recent example is GHSA-5qpp-pqww-h7fp, published on September 30, 2026. It concerns expression interpolation of untrusted input into the Query field of the Microsoft SQL node. The advisory lists fixes in 2.42.1 and 2.41.4 and explains the affected node behaviour. Its recommended node and query changes should be checked against the specific workflow.

That example does not mean either version fixes every n8n vulnerability. It also does not mean an instance without that node is free of other risks. Review the advisories for the branch and features you actually use, then choose a supported patched release.

Keep a simple record: “instance version, advisory, relevant workflow, required action, date checked.” This is more useful than an undated list of CVEs with one general “safe version.”

Update without losing the workflows you depend on

  1. Identify the deployment. Record whether it uses Docker, npm, queue workers or a managed host.
  2. Back up before changing it. Include the database, persistent files, configuration and the encryption key needed to read stored credentials.
  3. Read release notes. Check breaking changes and migration instructions for your current version.
  4. Test a separate copy where possible. Use sample data and test destinations rather than sending real customer messages.
  5. Apply the supported update. Keep the main process and workers compatible with the chosen release.
  6. Verify essential flows. Test triggers, credentials, code, branches and error alerts after the update.

Document the rollback plan as well as the upgrade. A database migration may make “just start the old image” an incomplete recovery plan. Do not overwrite your only backup while testing.

Use the built-in n8n security audit

n8n supports an audit through the CLI, API or n8n node. For the node route, select Resource Audit and Operation Generate. The reports cover credentials, database queries, file-system access, nodes and instance settings. They can flag unprotected webhooks or outdated configuration. See the audit documentation.

Treat the report as a starting point. Inspect why each flagged node exists and what it can access. A legitimate file-processing workflow may need file access; the question is whether it has more access than the job requires.

An empty report is not a penetration test or a guarantee that every connected service is configured safely. Keep advisory checks and workflow review as separate activities.

Separate editor access from public workflow endpoints

If you use approval gates, check them first

Three 2026 advisories involve Send and Wait or agent tool approvals. The worst case in n8n’s own wording for the HMAC bypass is that a caller holding an execution’s resume token can approve an action meant for someone else, and downstream steps run with the workflow owner’s credentials. Before patching, n8n’s temporary workarounds are to limit instance access to trusted users, avoid approval nodes guarding high-impact actions behind a public trigger, and review execution history for unexpected approvals or declines. These do not fully remediate the risk. Patching does. For building a safer approval flow, see the human-in-the-loop tutorial.

Make a list of the endpoints that must receive outside traffic. Your team’s editor and an incoming payment webhook have different access needs. Use HTTPS, appropriate account protections and a documented network design for the deployment.

For each public workflow, check the provider’s authentication or signature method, expected request shape, payload size and accepted events. A secret-looking webhook URL is not the same as verified request authentication.

Do not add a rule that silently blocks legitimate provider callbacks. Test valid and invalid requests in a safe environment, then confirm the workflow receives expected production events. Keep logs that help identify rejected requests without exposing credentials or full customer payloads.

Limit what users and credentials can do

Give each connection the permissions needed for its task. A workflow that reads leads does not normally need permission to delete all contacts. Use separate service accounts where that improves separation and the connected provider supports it.

Review who can edit a workflow as well as who can view it. Editing can change where data goes and what connected credentials are used for. Check the roles and sharing behaviour available in your edition rather than assuming a “viewer” or “editor” label means the same thing in every tool.

Keep tokens in n8n credentials or an appropriate secret-management setup. Avoid pasting them into examples, exports, screenshots or error notifications. Rotate exposed credentials using the provider’s process; patching the workflow engine does not revoke a leaked API key.

Harden code execution and review community nodes

Review code, command, file-access, custom and community nodes before importing a workflow. Understand the package source, version and permissions. A template imported from the internet is executable workflow logic, not just a diagram.

For self-hosted deployments using Code nodes, n8n documents external task runners, reduced-image options, unprivileged execution and filesystem controls in its hardening guide. Apply settings appropriate to your environment and test the workflows they affect. Isolation reduces exposure; it does not remove the need for updates.

Avoid broad access to the host, internal network or environment secrets when a workflow only needs one service. Do not disable a protection just to make an untrusted imported workflow run.

Keep AI input separate from authority

An incoming email or web page can contain instructions meant to influence an agent. Treat it as data. The workflow should define which tools exist, what those tools can access and which actions need review.

For example, an email-extraction flow can return suggested fields without being allowed to change account permissions or send arbitrary messages. Validate the output before a write. A JSON Schema checks shape; it does not make an instruction trustworthy.

Use human approval for consequential actions and a small tool list for agents. The MCP setup guide explains the difference between connecting an agent to tools and exposing workflow access to a client.

Test your backup and incident process

n8n encrypts stored credentials using an encryption key. Its key documentation explains the generated key and worker configuration. Preserve the correct key with your recovery materials and protect it as a secret.

Restore into a separate environment, check that credentials can be read and run a harmless sample workflow. Do not enable restored production triggers automatically. They can replay events or send messages while the original instance is still running.

If you suspect compromise, preserve useful logs, limit the affected access and follow the incident process for your environment. Review connected accounts as well as the n8n host. Credentials, stored data and downstream actions may need separate investigation.

n8n Cloud versus self-hosted responsibility

Managed hosting changes who operates the infrastructure. It does not remove your responsibility for account access, integration permissions, public workflows or the logic that sends and changes data. Do not assume a specific advisory affects or excludes Cloud customers unless n8n’s notice establishes that.

Self-hosted operators also manage server configuration, updates, storage, monitoring and recovery. If nobody on your team can maintain those tasks, include managed hosting in your decision. See our deployment guide.

Frequently asked questions

Is self-hosted n8n safe?

Security depends on the version, configuration, workflows and access controls. Check relevant advisories, apply patches and test recovery. No checklist can certify every installation.

Does n8n Cloud need patching?

n8n states that Cloud instances are patched automatically and need no action. Self-hosted instances must be upgraded by you.

Which n8n version is safe?

No version is safe against every future advisory. Compare your installed release with current official affected and fixed ranges. The October 14 examples above list newer fixes than the October 1 batch; keep checking for later notices.

Does updating fix every workflow security problem?

No. An update can patch a software vulnerability, while a workflow may still expose an unauthenticated endpoint or use an overpowered credential.

Is an old patched version enough?

A version that patched one advisory can be affected by a later one. Check current advisories and a supported release for your branch.

Does self-hosting keep all AI data local?

Not if the workflow sends it to an external API. Review each connected provider and what input the workflow transmits.

The five directly linked advisory explanations above were checked on 20 October 2026, and the three 14 October advisories (Data Tables, webhook responses, credential errors) were rechecked against GitHub on 30 October 2026. The September advisory table is retained as historical context. Recheck official notices before making a version-specific decision.

n8n

Best for: technical automation workflows

Consider n8n when your workflow needs custom logic or control over deployment. Self-hosting also requires time for updates, backups, and monitoring.

Operant Solo may earn a commission if you purchase through this link, at no extra cost to you.

You can read this article without subscribing. Want the next tested article?

Build better n8n workflows

Get a new tested n8n article when it is ready, covering rate limits, error workflows, retries and approvals. Free. Unsubscribe anytime.

Subscriptions are handled by Jetpack. Read our Privacy Policy before signing up.

Scroll to Top