Skip to main content

Budibase EUVDEUVD-2026-39916

| CVE-2026-54351 CRITICAL
Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915)
2026-06-22 https://github.com/Budibase/budibase GHSA-rgvg-3wpc-h44p
9.6
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
9.6 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
vuln.today AI
9.9 CRITICAL

Network endpoint, no UI, and only the attacker's own builder account (PR:L); scope changes as impact crosses into the victim workspace, and Execute/Delete steps yield full C/I/A loss, so A:H rather than the input's A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N

Primary rating from NVD.

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

7
Analysis Updated
Jun 30, 2026 - 20:14 vuln.today
v3 (cvss_changed)
Analysis Updated
Jun 30, 2026 - 20:13 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Jun 30, 2026 - 20:07 vuln.today
cvss_changed
Severity Changed
Jun 30, 2026 - 20:07 NVD
HIGH CRITICAL
CVSS changed
Jun 30, 2026 - 20:07 NVD
8.2 (HIGH) 9.6 (CRITICAL)
Source Code Evidence Fetched
Jun 23, 2026 - 00:01 vuln.today
Analysis Generated
Jun 23, 2026 - 00:01 vuln.today

DescriptionNVD

Summary

The webhook trigger endpoint in Budibase is publicly accessible and passes the full HTTP request body into automation execution parameters. A mass assignment vulnerability in externalTrigger() allows an attacker to overwrite the internal appId property by including it in the webhook POST body. When the automation is processed asynchronously (the default path for webhooks without a collect step), the worker executes the attacker-defined automation in the context of the victim's workspace, granting full read/write access to the victim's database.

Details

The webhook trigger route is registered as a public endpoint with no authentication:

typescript
// packages/server/src/api/routes/webhook.ts:12
publicRoutes.post("/api/webhooks/trigger/:instance/:id", controller.trigger)

The controller passes the raw request body as fields alongside the server-derived appId:

typescript
// packages/server/src/api/controllers/webhook.ts:142-148
await triggers.externalTrigger(target, {
  fields: {
    ...ctx.request.body,  // attacker-controlled
    body: ctx.request.body,
  },
  appId: prodAppId,       // server-controlled
})

In externalTrigger(), for webhook-triggered automations, params.fields is spread back into params:

typescript
// packages/server/src/automations/triggers.ts:237-241
params = {
  ...params,          // appId: prodAppId (server-controlled)
  ...params.fields,   // appId: VICTIM_ID (attacker-controlled, overwrites above)
  fields: {},
}

Because params.fields is spread after params, any key in the attacker's body overwrites the corresponding property in params. An attacker including "appId": "app_VICTIM_WORKSPACE_ID" in the POST body overwrites the legitimate, server-derived appId.

The contaminated params become data.event and are queued asynchronously:

typescript
// packages/server/src/automations/triggers.ts:244,271
const data: AutomationData = { automation, event: params }
// ...
return quotas.addAction(() => automationQueue.add(data, JOB_OPTS))

The async worker uses job.data.event.appId to set the workspace context:

typescript
// packages/server/src/threads/automation.ts:917,929-930
const workspaceId = job.data.event.appId  // attacker-controlled
// ...
return await context.doInAutomationContext({
  workspaceId,  // victim's workspace
  automationId,
  task: async () => { /* automation steps run here */ }
})

The synchronous path (for webhooks with a collect step) correctly overwrites appId at triggers.ts:264:

typescript
data.event = {
  ...data.event,
  appId: context.getWorkspaceId(),  // server-controlled fix
  automation,
}

This proves the developers intended appId to be server-controlled but missed applying the same fix to the async path, which is the default for all webhooks without a collect step.

PoC

Prerequisites: Attacker has builder access to their own Budibase workspace and knows a victim workspace ID (format: app_<uuid>).

Step 1: Attacker creates an automation in their own workspace with a webhook trigger and data-exfiltration steps (e.g., Query Rows → Execute Script to send data externally).

Step 2: Attacker creates a webhook for that automation and notes the webhook URL:

POST /api/webhooks/trigger/<ATTACKER_INSTANCE>/<WEBHOOK_ID>

Step 3: Attacker triggers the webhook with the victim's workspace ID injected into the body:

bash
curl -X POST https://budibase.example.com/api/webhooks/trigger/app_ATTACKER_ID/wh_WEBHOOK_ID \
  -H 'Content-Type: application/json' \
  -d '{"appId": "app_VICTIM_WORKSPACE_ID", "normalData": "test"}'

Expected result: The automation defined in the attacker's workspace executes in the context of the victim's workspace. All database operations (Query Rows, Create Row, Delete Row, Execute Script, etc.) operate on the victim's data.

Additional overridable fields via the same mechanism:

  • timeout (automation.ts:443-444): override automation execution timeout
  • user (automation.ts:413,435): set user context for automation steps
  • metadata.automationChainCount (automation.ts:293): bypass chain depth limits

Impact

An attacker with builder access to their own Budibase workspace can execute arbitrary automations (of their own design) in the context of any other workspace on the same Budibase instance, provided they know the victim's workspace ID. This enables:

  • Full data exfiltration: Query Rows steps read all tables in the victim's workspace
  • Data manipulation: Create Row, Update Row, Delete Row steps modify victim data
  • Arbitrary code execution in victim context: Execute Script steps run JavaScript with access to victim's environment variables and database
  • Cross-tenant boundary violation: In multi-tenant deployments (Budibase Cloud), the tenant ID is derived from the workspace ID, so the attack crosses tenant boundaries

The attack requires no authentication (the webhook endpoint is public) and leaves minimal audit trail since the automation execution is attributed to the attacker's automation definition but runs in the victim's context.

Recommended Fix

In packages/server/src/automations/triggers.ts, apply the same appId fix that exists in the synchronous path to the async path as well. The fix should ensure appId is always server-controlled before queuing:

typescript
// packages/server/src/automations/triggers.ts:244-272
const data: AutomationData = { automation, event: params }

// ... trigger filter check ...

+ // Ensure appId is always server-controlled, not user-supplied
+ data.event.appId = context.getWorkspaceId()

if (getResponses) {
  data.event = {
    ...data.event,
    appId: context.getWorkspaceId(),
    automation,
  }
  return quotas.addAction(() =>
    executeInThread({ data } as AutomationJob, { onProgress })
  )
} else {
  return quotas.addAction(() => automationQueue.add(data, JOB_OPTS))
}

Alternatively, use an allowlist approach for the webhook field spread to prevent any internal property from being overwritten:

typescript
// packages/server/src/automations/triggers.ts:237-241
const { appId, timeout, user, metadata, ...safeFields } = params.fields
params = {
  ...params,
  ...safeFields,
  fields: {},
}

AnalysisAI

Cross-workspace automation execution in Budibase (npm @budibase/server, all versions before 3.39.9) lets a builder-authenticated attacker run their own automations inside any other workspace on the same instance by overwriting the server-derived appId. The public, unauthenticated webhook trigger endpoint mass-assigns the raw POST body over internal parameters, and because Execute Script steps run JavaScript, this escalates to arbitrary code execution and full data theft in the victim's context. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Register builder account on shared instance
Delivery
Build automation with Query Rows + Execute Script
Exploit
Attach webhook trigger without collect step
Execution
POST body with victim appId override
Persist
Worker runs automation in victim workspace context
Impact
Exfiltrate and modify victim database

Vulnerability AssessmentAI

Exploitation Exploitation requires (1) builder access to the attacker's OWN Budibase workspace on the target instance - i.e., the ability to create an automation and an associated webhook; (2) knowledge of the victim's workspace ID in the app_<uuid> format; and (3) the targeted automation must take the default ASYNCHRONOUS path, meaning the webhook has NO collect step (webhooks with a collect step use the synchronous path that already re-pins appId and are not vulnerable). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment Signals are largely consistent toward a genuine high-priority issue, with one notable divergence. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker signs up for a builder account on a shared Budibase instance, builds an automation with a Query Rows step followed by an Execute Script step that exfiltrates results to an external server, and attaches a webhook trigger to it. They then POST to their own webhook URL with {"appId": "app_<victim_uuid>"} in the JSON body; the async worker runs their automation inside the victim's workspace, reading and modifying the victim's database. …
Remediation Vendor-released patch: upgrade @budibase/server to 3.39.9 or later, which re-pins the server-controlled appId on the asynchronous webhook path; this is the primary and complete fix per GHSA-rgvg-3wpc-h44p. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours: Identify all Budibase deployments and determine running versions; note that publicly available exploit code exists, making this an active threat. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

Share

EUVD-2026-39916 vulnerability details – vuln.today

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