← All advisories

CVE-2026-122247highBroken access control2026-11-20

CVE-2026-122247: Budibase's public /api/global/users/init endpoint trusted an attacker-chosen tenantId, letting anyone bypass the one-time setup guard and create global-admin records and new databases (fixed 3.50.0)

On self-hosted, single-tenant Budibase, the public first-run endpoint POST /api/global/users/init checked whether any user exists inside a tenant named in the request body. An unauthenticated attacker could pick an unused tenant name to get past the guard and create a new CouchDB database plus a global-admin user document, with no session or CSRF token, and repeat it to exhaust the datastore. Fixed in 3.50.0 and 4.0.0.

01.

What it is

The endpoint is in Budibase's public, no-tenancy and no-CSRF endpoint lists, and the cloudRestricted guard is a no-op on self-hosted instances, so the request reaches the controller without authentication.

The controller runs checkAnyUserExists() inside tenancy.doInTenant(tenantId) using the attacker-supplied tenantId, so an unused name sees no users and the handler creates <tenantId>_global-db and an admin document (admin.global and builder.global set).

Impact per the CVE record: the created admin cannot log into the default tenant while multi-tenancy stays disabled, so the immediate effect is persistent unauthenticated writes, denial of service by creating unlimited databases, and latent admin records that could become usable after a later move to multi-tenancy.

The GitHub advisory (published 20 November 2026) lists @budibase/server <= 3.38.1 as affected; the CVE record says versions before 3.50.0 and that 3.50.0 and 4.0.0 contain the fix (commit 362a7fe).

02.

How to check

  1. Check your self-hosted Budibase version: anything before 3.50.0 is affected.
  2. Look in CouchDB for unexpected <name>_global-db databases and for POST /api/global/users/init requests in your proxy logs after first setup.
03.

How to fix

  1. Upgrade Budibase to 3.50.0 or later (4.0.0 also contains the fix).
  2. Delete any rogue tenant databases and admin documents created through the init endpoint.
  3. Until you upgrade, block POST /api/global/users/init at your reverse proxy once the instance is set up.
# look for calls to the setup endpoint after your instance was provisioned
grep 'POST /api/global/users/init' /var/log/nginx/access.log
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.