---
title: "All versions"
description: "Upgrade guides for every Formbricks version, with the steps each version needs."
icon: "arrow-up-right-dots"
---

Each page lists what changes in that version and what you need to do. From 4.0 onward, upgrade one minor
version at a time; the [upgrade paths](/self-hosting/upgrade/paths) table shows your next stop. Then follow the
[standard upgrade](/self-hosting/advanced/upgrade) for your setup.

Patch-level changes are listed on each minor's page under **patch actions**, and in the
[release notes](/platform/changelog). If a migration fails, see [troubleshooting](/self-hosting/upgrade/troubleshooting).

<span id="detailed-changes-and-recovery" /><span id="if-a-migration-fails" /><span id="open-a-sql-session" /><span id="1-find-the-failed-migration" /><span id="2-find-the-real-error" /><span id="3-check-what-the-migration-left-behind" /><span id="4-mark-it-rolled-back-and-run-the-migrations-again" /><span id="data-migrations" />

## 6.x

- <span id="v6" /><span id="changes-in-environment-variables" /><span id="bundled-cube-image-action-required-for-some-deployments" />[6.0: Upgrade guide](/self-hosting/upgrade/versions/6.0)
- [6.1: Upgrade guide](/self-hosting/upgrade/versions/6.1)
  - <span id="bundled-tei-log-level" /><span id="database-transaction-limits" /><span id="idle-transactions-opt-in" /><span id="one-click-port-3000-is-published-on-the-host-only" /><span id="hub-worker-for-docker" /><span id="cube-model-files-for-docker" />[6.1: Runtime changes](/self-hosting/upgrade/versions/6.1-runtime)
  - <span id="encrypted-single-use-survey-links-must-be-regenerated-action-required-if-you-use-them" /><span id="what-to-do-when-upgrading" /><span id="what-you-will-see-if-you-skip-it" /><span id="why" /><span id="if-you-cannot-re-issue-in-time" /><span id="rollback" />[6.1.0: Single-use links](/self-hosting/upgrade/versions/6.1-single-use-links)
  - <span id="survey-visibility-opt-in" />[6.1.0: Survey visibility](/self-hosting/upgrade/versions/6.1-visibility)
- [6.2: Upgrade guide](/self-hosting/upgrade/versions/6.2)
  - <span id="charts-and-dashboards-api" />[6.2: Charts and dashboards API](/self-hosting/upgrade/versions/charts-dashboards)
  - <span id="bundled-valkey-9-1-2-image" />[6.2: Valkey 9 upgrade](/self-hosting/upgrade/versions/valkey-9)
  - <span id="question-codes-and-the-published-lock-action-required-for-some-api-and-mcp-clients" />[6.2: Question codes and the published lock](/self-hosting/upgrade/versions/question-codes)
  - [6.2: Attachment exports and new job queues](/self-hosting/upgrade/versions/attachment-exports)
  - <span id="dashboard-viewer-role-action-required-apply-the-authzed-schema" /><span id="what-changes-for-api-and-mcp-clients" />[6.2: Dashboard viewer role](/self-hosting/upgrade/versions/dashboard-viewer)
  - <span id="cube-memory-query-timeout-and-postgresql-shared-memory" />[6.2: Cube memory and PostgreSQL shared memory](/self-hosting/upgrade/versions/cube-memory)
  - [6.2: Helm connects Cube and the SpiceDB bootstrap to the bundled database](/self-hosting/upgrade/versions/helm-bundled-database)

## 5.x

- <span id="historical-releases" /><span id="version-5" /><span id="v5" /><span id="what-changes-in-v5" /><span id="before-you-upgrade" /><span id="required-config-and-infrastructure-changes" /><span id="formbricks-hub" /><span id="edge-rate-limiting" /><span id="ai-features" /><span id="cube" /><span id="upgrade-steps-by-deployment-type" /><span id="post-upgrade-verification" /><span id="troubleshooting-and-rollback" />[5.0: Upgrade guide](/self-hosting/upgrade/versions/5.0)
- [5.1: Upgrade guide](/self-hosting/upgrade/versions/5.1)
- <span id="v52" /><span id="v5-2" /><span id="sso-callback-url-change-action-required-for-sso-users" /><span id="authentication-environment-variables" /><span id="optional-new-configuration-2" /><span id="hub-enrichment-sentiment-emotion-translation" /><span id="ai-taxonomy-beta" /><span id="bundled-qwen-/-vllm-runtime" /><span id="opentelemetry-log-export" /><span id="upgrade-steps-2" /><span id="rollback-4" />[5.2: Upgrade guide](/self-hosting/upgrade/versions/5.2)
- <span id="v53" /><span id="v5-3" /><span id="client-ip-resolution-behind-a-proxy-recommended" /><span id="renamed-configuration" /><span id="optional-new-configuration" /><span id="survey-scheduling" /><span id="password-breach-check" /><span id="analytics-cube" /><span id="upgrade-steps" /><span id="rollback-3" />[5.3: Upgrade guide](/self-hosting/upgrade/versions/5.3)
- <span id="v54" /><span id="v5-4" /><span id="bundled-cube-image-update-action-required-for-some-deployments" /><span id="envoy-gateway-1-8-4-crd-upgrade" /><span id="database-migrations" /><span id="build-the-response-index-before-you-upgrade" /><span id="bundled-valkey-8-1-9-upgrade-action-required-for-some-self-hosted-deployments" /><span id="feedback-record-mutations-by-api-key-action-required-for-some-integrations" /><span id="what-to-do-before-upgrading" /><span id="rollback-2" /><span id="better-auth-1-7-upgrade-no-action-required-for-most-instances" /><span id="azuread_tenant_id-set-a-concrete-tenant-for-full-id_token-verification" /><span id="sso-callback-urls-are-unchanged" /><span id="mcp-access-tokens-now-end-with-their-session" /><span id="rollback-better-auth-1-7" />[5.4: Upgrade guide](/self-hosting/upgrade/versions/5.4)
  - [5.4.0: Database preparation](/self-hosting/upgrade/versions/5.4-database)
  - [5.4: Authentication changes](/self-hosting/upgrade/versions/5.4-authentication)
  - [5.4.0: Feedback API permissions](/self-hosting/upgrade/versions/5.4-api-permissions)
  - [5.4: Dependency changes](/self-hosting/upgrade/versions/5.4-runtime)

## 4.x

- <span id="version-4" />[4.x: Other upgrade notes](/self-hosting/upgrade/versions/4.x)
- <span id="v40" /><span id="v4-0" /><span id="whats-new-in-formbricks-4-0" /><span id="what-this-means-for-your-self-hosting-setup" /><span id="why-we-made-these-changes" /><span id="migration-steps-for-v4-0" /><span id="legacy-one-click-v4-0-upgrade" /><span id="manual-setup" /><span id="redis" /><span id="s3-compatible-storage" /><span id="upgrade-process" />[4.0: Upgrade guide](/self-hosting/upgrade/versions/4.0)
- <span id="v47" /><span id="v4-7" /><span id="what-happens-automatically" /><span id="steps-to-migrate" />[4.7: Upgrade guide](/self-hosting/upgrade/versions/4.7)

## Patch releases

Shared steps for patches released on several release lines at once. Each minor's version page links them from its **patch actions**.

- <span id="outgoing-email-caps" />[5.4.8 / 6.0.5 / 6.1.2: Security updates](/self-hosting/upgrade/versions/2026-10-27-patches)
- [5.4.7 / 6.0.4 / 6.1.1: Security updates](/self-hosting/upgrade/versions/2026-10-security-patches)
- [5.4.5 / 6.0.2: Cube image migration](/self-hosting/upgrade/versions/cube)

## Upcoming changes

Changes on `main` that need an action when you upgrade are listed here until they ship.

- **The app image runs on Debian 13 and Node 26.** It used to run on Alpine 3.24 and Node 24.
  - If you build your own image `FROM ghcr.io/formbricks/formbricks`, replace `apk add` with `apt-get install`. The `nextjs` user keeps UID 1001 and GID 101.
  - Node now trusts its own bundled list of root certificates. Adding a CA to `/etc/ssl/certs` or pointing `SSL_CERT_FILE` at it no longer reaches the app. To trust a private CA (an internal SMTP server, S3 endpoint or AI gateway), mount it and set `NODE_EXTRA_CA_CERTS` to its path, as described in [SMTP](/self-hosting/configuration/smtp).
  - If your PostgreSQL certificate comes from a private CA, set `sslmode=verify-full` and point `sslrootcert` in `DATABASE_URL` at the mounted CA file, as described in [Database TLS](/self-hosting/configuration/environment-variables#database-tls). The app and the migrations both read it.
- **Migrations verify the database certificate.** With `sslmode=verify-full` or `verify-ca` in `DATABASE_URL` (or `MIGRATE_DATABASE_URL`), or `sslrootcert` with any `sslmode` other than `disable` or `no-verify`, the migrations used to connect without checking the server certificate. They now check it, including the host name, as the app's own connections already do (unless the URL sets `uselibpqcompat=true`). Before you upgrade, check that the CA that signed the server certificate is in the `sslrootcert` file when you set one (migrations then trust only that file), or otherwise is publicly trusted or set with `SSL_CERT_FILE`, and that the host in the URL matches the certificate. Otherwise the migrations stop with Prisma error `P1011`. An `sslmode` value libpq does not know (for example `Require`) now stops the migrations before they start, instead of being read as `prefer`. If the app connects but the migrations do not, a `MIGRATE_DATABASE_URL` with `sslaccept=accept_invalid_certs` skips the certificate check for schema migrations only. See [Database TLS](/self-hosting/configuration/environment-variables#database-tls).
- <span id="mcp-access-per-organization-and-workspace" />[Unreleased: MCP access per organization and workspace](/self-hosting/upgrade/versions/mcp-access)

## Older releases

Archived for reference. These guides are no longer listed in the navigation.

### 3.x

- <span id="version-3" /><span id="v33" /><span id="v3-3" /><span id="steps-to-migrate-2" />[3.3: Upgrade guide](/self-hosting/upgrade/versions/3.3)
- <span id="v32" /><span id="v3-2" /><span id="steps-to-migrate-3" />[3.2: Upgrade guide](/self-hosting/upgrade/versions/3.2)
- <span id="v31" /><span id="v3-1" /><span id="steps-to-migrate-4" />[3.1: Upgrade guide](/self-hosting/upgrade/versions/3.1)
- <span id="v30" /><span id="v3-0" /><span id="steps-to-migrate-5" />[3.0: Upgrade guide](/self-hosting/upgrade/versions/3.0)

### 2.x

- <span id="version-2" /><span id="v27" /><span id="v2-7" /><span id="additional-updates" /><span id="steps-to-migrate-6" />[2.7: Upgrade guide](/self-hosting/upgrade/versions/2.7)
- <span id="v26" /><span id="v2-6" /><span id="steps-to-migrate-7" />[2.6: Upgrade guide](/self-hosting/upgrade/versions/2.6)
- <span id="v25" /><span id="v2-5" /><span id="steps-to-migrate-8" />[2.5: Upgrade guide](/self-hosting/upgrade/versions/2.5)
- <span id="v24" /><span id="v2-4" /><span id="steps-to-migrate-9" /><span id="additional-updates-2" />[2.4: Upgrade guide](/self-hosting/upgrade/versions/2.4)
- <span id="v23" /><span id="v2-3" /><span id="steps-to-migrate-10" /><span id="additional-updates-3" />[2.3: Upgrade guide](/self-hosting/upgrade/versions/2.3)
- <span id="v22" /><span id="v2-2" /><span id="steps-to-migrate-11" /><span id="changes-in-environment-variables-2" />[2.2: Upgrade guide](/self-hosting/upgrade/versions/2.2)
- <span id="v21" /><span id="v2-1" /><span id="steps-to-migrate-12" /><span id="changes-in-environment-variables-3" />[2.1: Upgrade guide](/self-hosting/upgrade/versions/2.1)
- <span id="v20" /><span id="v2-0" /><span id="steps-to-migrate-13" /><span id="app-surveys-with-@formbricks/js" />[2.0: Upgrade guide](/self-hosting/upgrade/versions/2.0)

### 1.x

- <span id="version-1" /><span id="v16" /><span id="v1-6" /><span id="steps-to-migrate-14" /><span id="restoring-the-database-after-a-failed-upgrade" /><span id="app-surveys-with-@formbricks/js-2" /><span id="upgrade-and-pin-the-client-package" /><span id="deprecated-environment-variables" />[1.6: Upgrade guide](/self-hosting/upgrade/versions/1.6)
- <span id="v12" /><span id="v1-2" /><span id="new-environment-variables" /><span id="deprecated-/-removed-environment-variables" />[1.2: Upgrade guide](/self-hosting/upgrade/versions/1.2)
- <span id="v11" /><span id="v1-1" /><span id="renamed-environment-variables" /><span id="deprecated-environment-variables-2" /><span id="helper-shell-script" /><span id="docker-&-single-script-setup" />[1.1: Upgrade guide](/self-hosting/upgrade/versions/1.1)
