Now booking enterprise content platform builds for 2026. Contact us

All articles Engineering 7 min read

Payload CMS 3 to 4: what to audit before upgrading

Payload 4.0.0-beta.8 is the latest prerelease; Payload 3.93.0 is the latest stable release. What to inventory before upgrading, an impact matrix for changes that alter behaviour without an error, and what happened when we ran a fixture on beta.2.

  • Engineering
  • Practice

As checked on 11 November 2026, Payload 3.93.0, published on 4 November, is the latest stable release. 4.0.0-beta.8, published on 10 November, is the latest prerelease. Use the beta to identify what a future upgrade will touch; keep production on the stable line until a stable 4.0 is available. The migration guide listed 97 breaking changes when we reviewed it on 19 October, including changes to working behaviour that do not raise an error.

Apply the stable security update while planning the major upgrade. Payload flags security fixes in 3.93.0 and beta.7 and urges prompt updating. Teams on Payload 3 can take those fixes on the stable line. They cover read permissions within blocks, permitted block types, remote-upload restrictions, tenant redirects and escaping values during rich-text HTML conversion, among other changes. Rehearse the update with the permission rules, uploads and rendered content your application uses, then deploy the stable update separately from the Payload 4 migration. These are vendor-reported fixes; our fixture evidence below remains specific to beta.2.

Check the runtime before either update. Payload 3.92.0 raised its Node requirement to 22.23.4 or later within Node 22, or 24.22.1 and newer (^22.23.4 || >=24.22.1). Beta.4 raised its minimum to Node 24.22.1. The published packages for 3.93.0 and beta.8 retain those respective requirements. Check local development, CI and hosting together. Beta.4 also fixes global version restoration and preservation of published content when restoring drafts, alongside admin accessibility fixes.

Beta.8 adds these checks to the rehearsal. They come from Payload’s release notes and package metadata; our fixture results below remain specific to beta.2.

  • React and framework versions. React and React DOM now require ^19.3.1. Next.js must satisfy >=16.4.1 <17.0.0; TanStack Start projects need @vitejs/plugin-rsc ^0.5.38. Update the dependencies for the framework your project uses, alongside Node, in local development, CI and hosting.
  • MCP authentication. The MCP plugin provides a built-in OAuth server by default. Unauthenticated requests receive an OAuth challenge. Rehearse login, consent, token renewal and logout with each connected client, then check which tools and records the signed-in user can access.
  • Upload transforms and storage. When a request-time transformer can apply the saved transforms and no upload-time stage handles them, Payload can store only the original and generate the default file on request. Postgres and SQLite projects need a generated migration for the new storage fields. Check saved crops, original-file reads, access rules and custom storage adapters; code reading filesize must handle null when the default file is not stored.
  • Custom form utilities. Imports from payload/shared change from reduceFieldsToValues to getDataFromFormState, and from getSiblingData to getSiblingDataFromFormState. Update imports and calls. The useForm().getData() and useForm().getSiblingData() methods keep their names.
  • Custom endpoints. Remove the deprecated, previously ineffective root option. The new disableAuth: true option skips automatic authentication and leaves req.user null; use it only where the handler performs the required authentication itself.

Beta.7 added two checks that still apply:

  • Session schema and refresh tokens. Auth collections using sessions gain refreshCount and refreshedAt, even when auth.refreshTokens is disabled. Existing Postgres and SQLite projects need a migration; generate and inspect it before running it in production. MongoDB needs no schema migration for this change. If you enable refresh tokens, check token renewal and logout in each client that uses them.
  • Retained upload originals. New uploads on the v4 beta no longer add -original to the original file’s name. Use doc.original.filename or doc.original.url rather than constructing the name. Custom storage adapters must pass isOriginal to getFilePrefix in their staticHandler; check that requesting the original returns the correct file. Remove imports of the deleted getOriginalFilename helper.

Beta.6 makes the Admin UI restore versions as drafts, so include restoration and subsequent publication in the rehearsal. Its upgrade to Lexical 0.53.0 adds a separate check for custom rich-text features. The Lexical migration notes confirm that the stored rich-text format is unchanged and this change needs no database migration. Custom code may need to remove generic node type arguments from traversal and key-lookup calls and narrow results with node guards. Deprecated import extensions are removed, and Markdown exports now escape literal brackets and HTML-like text. Type-check custom features and compare any exports consumed by other code.

Beta.5 changed custom upload adapters with receipts disabled: handlers must read extra fields from uploadReference.clientData rather than the top level of uploadReference. Payload’s first-party adapters use receipts and are unaffected by this change. Check custom adapters before upgrading. These are vendor-reported changes; our fixture results below remain specific to beta.2.

Beta.3 introduced cache component support, validation of each locale when writing localized fields with locale: 'all', and a breaking TanStack Start change using React Flight for RSC responses. The locale-validation fix is also included in stable 3.92.0.

This is our audit list for teams on Payload 3. What Payload documents and what we tested are kept apart, and each row of the impact matrix links to its section of Payload’s 3.0 to 4.0 migration guide, read on 19 October 2026. WAYF is an official Payload partner; we start migrations on the stable line and move clients to the next major once it is stable.

What to inventory on Payload 3 now

  • Every Local API call (payload.find, create, update, delete, count and the payload.jobs operations), and whether each one acts for a user or as trusted server code. Payload 4 makes these calls enforce access control unless they pass overrideAccess: true.
  • Queries that rely on two populated relationship levels without setting depth.
  • Collections and globals with no versions setting, and any custom auth collection. Payload 4 turns versions and authorship on by default, which on SQL databases means a migration.
  • Public collections without readVersions, because version access now inherits read access.
  • Integrations that hold Payload tokens or API keys, API keys created before 3.46.0 and never re-saved, and MCP clients that need an OAuth login and token renewal.
  • Background jobs: calls that queue or run jobs, cron expressions, and any custom database adapter.
  • Runtimes: Node, React, the project’s Next.js or TanStack Start dependencies, and TypeScript versions in local development, CI, Docker images and hosting.
  • Rich text and uploads: Slate editor fields, legacy Lexical HTML converters, custom Lexical features and Markdown exports, storage adapters registered under plugins, the Uploadthing adapter, custom upload adapters with receipts disabled, saved transforms, and code that depends on uploaded file names or sizes.
  • Custom admin and endpoint code: form-state utility imports, the removed endpoint root option, and handlers that authenticate requests themselves.
  • Scripts the codemod may not read, such as .mjs or .cjs seeds and migration scripts.

The impact matrix

These six areas change behaviour in ways a successful build does not reveal. Payload’s guide covers the rest, from admin components to Lexical types, and many of those are renamed or removed APIs that a build or type check reports.

The rollback column describes each change in isolation. Reverting the full upgrade also requires compatible application code, runtime and database state. Check down migrations before relying on them; restoring a pre-upgrade backup can discard later writes.

Change in Payload 4Automated helpInspect and validateRollback
Local API access. overrideAccess now defaults to false, so calls that omitted it enforce access control, with no compile error.The codemod adds overrideAccess: true to calls that omit it; spread, aliased and non-literal arguments are left for you.Review every inserted value; set false where the call acts for a user. Test cross-user reads, seeds, hooks and jobs.Code only: redeploy the previous build.
Auth tokens and API keys. Tokens without the new authVersion header marker are rejected; API keys created before 3.46.0 and never re-saved stop authenticating.None. After an upgrade from an unpatched release, users sign in again; holders of old API keys re-save their user document.Which Payload 3 release issued current tokens, which integrations store them, and which keys predate 3.46.0. Test sign-in and each integration after deploying.Sessions ended by the upgrade stay ended; warn users and integration owners.
Jobs. Job operations default to enforcing jobs access; the jobs collection denies generic access; cron expressions need explicit ranges.The codemod adds overrideAccess: true to jobs calls, including payload.jobs.run().Run each task, workflow and schedule on staging, and confirm the jobs access rules.Code and configuration: redeploy the previous build.
Query depth. Queries that omit depth populate one relationship level instead of two.None. Set depth: 2 where needed, or defaultDepth: 2 for the whole config.Compare API responses and rendered pages that show nested relationships.Configuration: one setting.
Versions and authorship. Both are on by default; on SQL adapters each needs a database migration, and version reads inherit read access.Transforms add versions: false and authorship: false; in our run only the authorship one changed our config.Generate the migration with payload migrate:create and read it; check readVersions on public collections.Schema: restore the pre-migration backup or run the down migration.
Runtimes. Node 24.22.1 or later; beta.8 requires React/React DOM ^19.3.1 and Next.js 16.4.1 or later within 16.x. TanStack Start projects need @vitejs/plugin-rsc ^0.5.38. The guide’s TypeScript minimum is 6.0.3.None.Local development, CI, Docker images and hosting meet the exact beta.8 package requirements for the chosen framework.Keep the previous runtime image until the release is accepted.

Three smaller changes belong on the same review: oversized uploads now return HTTP 413 instead of being truncated, the Admin UI publishes the active locale by default, and storage adapters move from plugins to a top-level storage key.

What we tested

On 19 October 2026 we ran one of our own fixtures on 4.0.0-beta.2: the sixteen tests from Building field-level RBAC in Payload CMS, which check that a role policy holds on API requests. The fixture is disposable: Payload with the SQLite adapter, no admin panel and no Next.js, in plain JavaScript modules, run with Node v24.22.0 on Windows. It covers access control and says nothing about the admin UI, rich text, uploads or a production database.

  1. Before. Payload 3.90.2 and @payloadcms/db-sqlite 3.90.2: npm ci, npm run seed and npm run verify passed 16 of 16 tests.
  2. Dependencies only. npm refused to upgrade in place, because the 4.0.0-beta.2 SQLite adapter declares payload@4.0.0-beta.2 as an exact peer dependency, so the Payload packages have to move together. After changing both versions in package.json and reinstalling without the old lockfile, npm run seed stopped at its first create with Forbidden: You are not allowed to perform this action., a 403. The seed depended on Payload 3’s Local API default.
  3. The codemod. npx @payloadcms/codemod@4.0.0-beta.2 . reported 0 files changed for every transform. Without a tsconfig.json, its file pattern is *.ts, *.tsx, *.js and *.jsx, and the fixture’s files are .mjs.
  4. The codemod on .js copies. After renaming the three files to .js, it added overrideAccess: true to 18 Local API calls and authorship: false to 3 collections. The versions transform changed nothing. The seed ran, and 16 of 16 tests passed.
  5. The schema. The database built on 4.0.0-beta.2 had version tables for all three collections, including the custom users auth collection, which Payload’s guide says to set to versions: false. It also had two payload_llm_instructions tables that the fixture does not configure.

The tests passed because the codemod restored Payload 3’s access bypass explicitly. One of the 18 inserted values sits on a call that passes a user and reads another tenant’s document. With overrideAccess: true it still bypasses access control, the case Payload’s guide says to review and switch to false. A green suite after the codemod shows that behaviour was preserved. Whether it should have been preserved is a decision for the review. Our approval workflow example was written against the same Payload 3 default, and we did not run it on the beta.

Planning the production upgrade

Start on a branch, with a copy of production data.

  1. For a beta.8 rehearsal, use Node 24.22.1 or later, React/React DOM ^19.3.1, and Next.js >=16.4.1 <17.0.0 or the corresponding TanStack Start dependencies, including @vitejs/plugin-rsc ^0.5.38. Keep TypeScript at the guide’s minimum of 6.0.3 or later. Align local development, CI, Docker and hosting; recheck the exact release requirements before the production upgrade.
  2. Bump every payload and @payloadcms package to the same version, run npx @payloadcms/codemod, then run a type check, which the guide recommends for the cases the codemod leaves behind.
  3. Review each inserted overrideAccess: true, and read the generated database migrations before running them, including the session and upload-storage changes above.
  4. Test sign-in, every integration that stores a token or API key, MCP login and permissions, and each background job. Exercise custom form code, endpoint authentication, upload transforms and original-file reads where the application uses them.
  5. Take a database backup before the migrations run, and keep the previous build and runtime image ready.

Payload’s 4.0 announcement set the goal of a shorter path from beta to stable than version 3 had, without giving a date. In a maintenance arrangement, a major upgrade is planned scope, priced and scheduled apart from support; WAYF’s audit and ongoing retainer keeps those tracks separate.

FAQ

  1. Is Payload 4 stable yet?

    As checked on 11 November 2026, Payload 3.93.0 is the latest stable release, published on 4 November with security fixes. Payload 4.0.0-beta.8 was published on 10 November under npm's beta tag and remains a prerelease. Payload has announced no date for a stable 4.0.

  2. Does the Payload 4 codemod migrate a project automatically?

    It migrates many changes and leaves others for review. Payload's guide says most breaking changes are auto-migratable with npx @payloadcms/codemod and lists cases it leaves behind. In our run on 4.0.0-beta.2 it skipped .mjs files, and the overrideAccess: true values it inserted kept Payload 3's access bypass on every Local API call, including one made on behalf of a user, which is the case the guide says to review.

  3. Will users have to sign in again after upgrading to Payload 4?

    When the site upgrades directly from a Payload release without the JWT fix, yes. Payload 4 rejects tokens that lack its authVersion header marker, so users sign in again and integrations reissue stored tokens. Tokens issued by a patched Payload 3 release stay valid if the signing secret and the auth configuration stay compatible.

Sources

  • Payload, 3.0 to 4.0 migration guide (beta documentation), read 19 October 2026: the codemod, Local API and jobs access defaults, JWT versioning, API keys, query depth, versions, version read access, authorship, uploads, localisation and storage adapters. Runtime requirements rechecked 30 October 2026.
  • Payload on GitHub, v4.0.0-beta.3 release notes, published 19 October 2026: cache component support, localized-field validation for locale: 'all', and the breaking TanStack Start React Flight change
  • Payload on GitHub, v3.92.0 release notes and v4.0.0-beta.4 release notes, published 22 October 2026: the runtime changes and beta.4 fixes described above.
  • Payload on GitHub, v3.92.1 and v4.0.0-beta.5, published 27 October 2026, and v4.0.0-beta.6, published 29 October; Lexical 0.53.0 migration notes, read 30 October. npm dist-tags checked 30 October 2026: latest 3.92.1 and beta 4.0.0-beta.6. Node engine constraints checked in npm’s 3.92.1 and beta.6 package metadata.
  • Payload on GitHub, v3.93.0 and v4.0.0-beta.7, published 4 November 2026; refresh-token and session-schema changes and retained upload originals, read 5 November. npm dist-tags checked 5 November: latest 3.93.0 and beta 4.0.0-beta.7. Node requirements verified in the 3.93.0 and beta.7 package metadata.
  • Payload, 4.0 announcement, read 19 October 2026
  • Payload on GitHub, v4.0.0-beta.8, published 10 November 2026; the linked framework, MCP OAuth, upload-transform, form-utility and endpoint changes, read 11 November. npm dist-tags checked 11 November: latest 3.93.0 and beta 4.0.0-beta.8. Requirements verified in the beta.8 metadata for Payload, Next.js integration, UI and TanStack Start integration.
  • Our run of the RBAC fixture on 19 October 2026: Payload 3.90.2 and 4.0.0-beta.2 with the matching SQLite adapter, @payloadcms/codemod 4.0.0-beta.2, Node v24.22.0, npm 11.19.1. The beta.2 fixture results above are version-specific; beta.3 through beta.8 and stable 3.93.0 were not tested in that exercise.

Author

Paul Utr

Co-founder, Chief Growth Officer

Paul has been launching online platforms since his teens, picking up UX and product design by building them. He led the Mailgun redesign at Netguru and was Principal Designer at Ramp Network through its seed-to-Series-B run. At WAYF he leads design and organisational alignment, and watches how language carries through every product we ship.


Where to go next WAYF is an official Payload partner. We start migrations on the stable line and move to the next major once it is stable.

We're booking content platform
engagements for 2026.

Twenty-five minutes to walk through the work and decide if we're the right team for it. Scoping and a fixed price come after.