Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @budibase/server
  4. ›
  5. CVE-2026-122247

CVE-2026-122247: Budibase: Unauthenticated global-admin & database creation via tenant-confusion bypass of the one-time init guard (`POST /api/global/users/init`)

November 20, 2026

On a self-hosted, single-tenant Budibase instance (multiTenancy:false), the public bootstrap endpoint POST /api/global/users/init remains fully exploitable after the instance has been provisioned. Its “already initialised” guard (checkAnyUserExists()) is evaluated inside a tenant-scoped database context derived from an attacker-controlled tenantId in the request body. Because the tenancy layer never constrains that tenantId to the only legitimate tenant (default) on a single-tenant deployment, an unauthenticated attacker simply supplies any unused tenant name to make the guard see an empty user list, and the endpoint then creates a brand-new CouchDB database (<tenantId>_global-db) and a global-admin user document (admin.global = true, builder.global = true) inside it - with no authentication and no CSRF token.

This is (a) a bypass of the security control meant to permanently close first-run setup, and (b) an unauthenticated, persistent write primitive that lets an anonymous attacker create an unbounded number of databases and admin-user documents - a resource-exhaustion / denial-of-service vector against the CouchDB datastore, plus creation of latent rogue admin accounts.

References

  • github.com/Budibase/budibase/commit/362a7fe9aea594531ece1cf15be76cc00bfb88b9
  • github.com/Budibase/budibase/releases/tag/v3.50.0
  • github.com/Budibase/budibase/releases/tag/v4.0.0
  • github.com/Budibase/budibase/security/advisories/GHSA-25qc-m4pw-2w8r
  • github.com/advisories/GHSA-25qc-m4pw-2w8r
  • nvd.nist.gov/vuln/detail/CVE-2026-122247

Code Behaviors & Features

Detect and mitigate CVE-2026-122247 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.38.1

Solution

Unfortunately, there is no solution available yet.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-306: Missing Authentication for Critical Function
  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-863: Incorrect Authorization

Source file

npm/@budibase/server/CVE-2026-122247.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 21 Nov 2026 00:15:39 +0000.