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.
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).
How to check
- Check your self-hosted Budibase version: anything before 3.50.0 is affected.
- Look in CouchDB for unexpected <name>_global-db databases and for POST /api/global/users/init requests in your proxy logs after first setup.
How to fix
- Upgrade Budibase to 3.50.0 or later (4.0.0 also contains the fix).
- Delete any rogue tenant databases and admin documents created through the init endpoint.
- 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 Sources
- criticalBudibase before 4.0.0: unverified-email SSO takeover of Builder accounts, anonymous MongoDB filter erasure and cross-tenant file deletion (CVE-2026-137499, CVE-2026-137498, CVE-2026-137494)
- highCVE-2026-137497: Budibase's unauthenticated public settings endpoint returned the tenant's legacy LiteLLM virtual key and secret (fixed 4.0.0)
- highCVE-2026-122244: Budibase app users, or anonymous visitors to a public form, could plant script that runs in a builder's or admin's session when they preview a Handlebars binding (fixed 3.50.0)