CVE-2026-54351: Budibase: Mass Assignment in Webhook Trigger Allows Cross-Workspace Automation Execution via appId Override

Published Jun 22, 2026
·
Updated

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: VICTIMID (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": "appVICTIMWORKSPACEID" 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, JOBOPTS))

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/<ATTACKERINSTANCE>/<WEBHOOKID>

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/appATTACKERID/whWEBHOOKID \ -H 'Content-Type: application/json' \ -d '{"appId": "appVICTIMWORKSPACEID", "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, JOBOPTS)) }

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: {}, }

Other sources

Budibase is an open-source low-code platform. Prior to 3.39.9, 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. This vulnerability is fixed in 3.39.9.

MITRE

Affected Software

2 affected componentsFixes available
npm/@budibase/server<3.39.9
3.39.9
budibase Budibase<3.39.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@budibase/server to a version that resolves this vulnerability.

    Fixed in 3.39.9
  2. Upgrade

    Upgrade Budibase to a version that resolves this vulnerability.

    Fixed in 3.39.9
  3. Configuration

    Apply the server-controlled appId fix to the async webhook-trigger path in externalTrigger() so that job.data.event.appId cannot be overwritten by webhook POST body fields (i.e., ensure appId is set from context.getWorkspaceId() before queuing, not from ctx.request.body/params.fields).

    Budibase server automation webhook trigger (externalTrigger async path) appId assignment for queued automation jobs = appId = context.getWorkspaceId()

Event History

Jun 22, 2026
Advisory Published
via GitHub·11:20 PM
Data Sourced
via GitHub·11:20 PM
DescriptionSeverityWeaknessAffected Software
Jun 26, 2026
CVE Published
via MITRE·08:45 PM
Data Sourced
via MITRE·08:45 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software
Jan 22, 58467
Event
via NVD·03:46 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-54351?

CVE-2026-54351 has a severity rating of 8.2, categorized as high.

2

How do I fix CVE-2026-54351?

To fix CVE-2026-54351, restrict access to the webhook trigger endpoint and validate incoming data to prevent mass assignment.

3

What type of vulnerability is CVE-2026-54351?

CVE-2026-54351 is a mass assignment vulnerability affecting the webhook trigger functionality in Budibase.

4

What can an attacker do with CVE-2026-54351?

An attacker can exploit CVE-2026-54351 to overwrite the internal appId property through crafted webhook requests.

5

Which software is affected by CVE-2026-54351?

CVE-2026-54351 affects the npm package @budibase/server.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203