Nokto

Updating n8n without breaking your workflows

By Abdellah El KharrazePublished 5 min read

In short

To update self-hosted n8n: read the release notes between your version and the target, back up the database, change the Docker image version number, then run docker compose pull and docker compose up -d. Stay on the stable track, pin the version, apply security fixes quickly and test critical workflows right after.

Key takeaways

  • n8n ships a minor version almost every week, on two tracks: stable and beta. In production, follow stable.
  • n8n 2.0 (December 2025) introduced breaking changes: task runners on by default, environment variable access blocked in the Code node, sensitive nodes disabled.
  • Several critical vulnerabilities were fixed in 2026: an exposed instance must get security fixes quickly.
  • An update can break a workflow without a visible error: watch silences and volumes in the hours that follow.

Updating is when a self-hosted n8n instance takes the most risk. Too rare, and you pile up known vulnerabilities and a hard version jump; too frequent and without method, and you break a critical workflow on a Friday night. Here is a proven method, from choosing the version to checking afterward.

How n8n releases versions

n8n follows semantic versioning: MAJOR.MINOR.PATCH. A major version can contain breaking changes, a minor version adds features without breaking anything, a patch fixes things.

  • Cadence: n8n ships a new minor version most weeks, and patches even more often.
  • Two tracks: the stable track, recommended for production, and the beta track, which gets new features first.
  • Sources: the Release notes page in the documentation (feature summary per version) and the GitHub releases (full detail of each version, fixes included).

Never take “the latest version” from a blog post: within a few weeks, it has changed. Check the official release notes when you update.

The n8n 2.0 case

Version 2.0, released in December 2025, bundled long-awaited changes, mostly for security. If you are migrating from the 1.x branch, these are the points that break most often:

ChangeEffectWhat to do
Task runners on by defaultCode node code runs in an isolated processCheck that your infrastructure supports them; test Code nodes
Environment variable access blocked in the Code nodeN8N_BLOCK_ENV_ACCESS_IN_NODE defaults to true; “access to env vars denied” errorPass secrets through credentials, or explicitly re-allow access
Sensitive nodes disabledExecute Command and Local File Trigger unavailable by defaultOnly re-enable them if needed, knowing the risk
File access restrictedReading and writing limited to allowed directoriesDeclare the directories you use
Config file permissionsSettings files required to be 0600Fix volume permissions

n8n provides a migration report to run on the 1.x instance before the update: it lists the affected workflows and settings. Start there.

Security sets the pace

In 2026, n8n fixed several serious vulnerabilities, including one allowing remote code execution through public webhooks and a chain of vulnerabilities fixed in July on both the 1.x and 2.x branches. For an instance exposed to the internet, this is no detail: automation editors connect sensitive systems, and known vulnerabilities get exploited fast.

A simple rule: security fixes rated critical are applied within 48 hours, other updates follow your normal cadence.

The method, step by step

1. Decide on a cadence

For example: the latest stable version once a month, on a fixed date, outside sensitive periods for your clients (not the day before a month-end close). Critical fixes as soon as they are released.

2. Read the release notes

Between your version and the target, look for “breaking”, “deprecated”, “removed”, and the nodes you use. A minor version is not supposed to break anything, but an app node can change behavior if the third-party service's API changed.

3. Back up

Database and encryption key, as for any intervention. Write down the current version: it is your rollback.

4. Update

# In compose.yml: image: docker.n8n.io/n8nio/n8n:<new-version>
docker compose pull n8n
docker compose up -d n8n
docker compose logs -f n8n   # wait for “Editor is now accessible”

In queue mode, update the main instance and all workers together: different versions between them cause unpredictable behavior.

5. Check right away

  • The editor opens, credentials are readable (if not, an encryption key problem).
  • /healthz/readiness returns 200.
  • Critical workflows run: trigger one manually, watch the next scheduled executions.
  • Webhooks respond (test a call).

6. Monitor the following hours

This is the step people forget. An update can break a workflow without a visible error: a trigger that does not resubscribe, a node whose behavior changes and lets nothing through, a shifted schedule. The hours after an update are when silence and volume-drop detection is most valuable.

In Nokto, open a short maintenance window during the update itself, then let monitoring resume: a workflow that does not go back to its usual rhythm will trigger an alert, and the flow's page will show the date of the last change.

7. Roll back if needed

Put the old version number back and restart. If the update migrated the database schema, restore the backup made in step 3: that is why you make it right before.

Updates on n8n Cloud

On n8n Cloud, infrastructure and updates are handled by n8n. You remain responsible for your workflows: a change in a node's behavior affects you just as much as when self-hosting. Test your critical workflows after each version change, and keep monitoring silences and volumes.

Key takeaway

Updating n8n is not risky if you do it often, with a backup right before, a read of the release notes and monitoring right after. What is risky is not doing it for a year, then jumping ten versions, including a major one, under the pressure of a security vulnerability.

Frequently asked questions

What is the latest version of n8n?

n8n releases new versions almost every week, on a stable track and a beta track. Check the Release notes page in the documentation or n8n's GitHub releases for today's stable version; do not rely on a number read in an article.

How do I update n8n with Docker?

Back up the database, replace the image version number in your compose file, then run docker compose pull and docker compose up -d. Check the logs and test your critical workflows. With docker run, stop the container, pull the new image and restart it with the same volumes.

How do I update n8n Cloud?

On n8n Cloud, updates are handled by n8n. The workspace owner can choose the version from the Cloud admin dashboard, depending on the plan. Test your critical workflows after each version change.

Should I move to n8n 2.0?

Yes: the 1.x branch received security fixes for a limited time after 2.0 came out, then nothing more. Prepare the migration with the migration report tool provided by n8n, starting with workflows that use the Code node, environment variables or nodes now disabled by default.

Sources

Try Nokto for free