Skip to main content

Budibase EUVDEUVD-2026-32596

| CVE-2026-46426 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-19 https://github.com/Budibase/budibase GHSA-82rc-gxrg-v4gf
7.6
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Recon
    Obtain Builder or table-WRITE account
  2. Delivery
    Authenticate and retrieve CSRF token
  3. Exploit
    POST malicious SVG/HTML to /api/attachments/process
  4. Install
    Object store serves signed URL with active MIME
  5. C2
    Embed attachment in published app screen
  6. Execute
    Victim opens screen, browser executes script
  7. Impact
    Steal session cookies, takeover account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

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

Exploitation Conditions

Requires a self-hosted Budibase deployment (env.SELF_HOSTED truthy) at any version below 3.38.2, plus an authenticated account holding either the Builder role on any workspace OR BASIC/POWER role with WRITE permission on at least one table - admin is explicitly NOT required. The attacker must also obtain a valid CSRF token bound to their session (trivial when operating through the Budibase frontend, or by reading the Redis key session-<userId>/<sessionId> for scripted abuse). Exploitation is gated by user interaction (UI:R): a victim must open or render the attachment URL inside an app screen for the payload to fire, so impact is bounded by which screens reference the malicious file and which users view them; purely cloud-hosted Budibase tenants are out of scope because the dangerous code path is wrapped in the !env.SELF_HOSTED branch.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N (base 7.6) reflects network-reachable exploitation with low complexity, requiring low privileges (any authenticated Builder, or even a BASIC/POWER user with table WRITE) and user interaction (a victim opening the attachment URL); scope-changed because the script executes in the victim's browser context. No EPSS, KEV, or SSVC data was supplied, so probability of mass exploitation cannot be quantified - but a working PoC is embedded in the public GHSA advisory, which materially raises real-world risk for any internet-exposed self-hosted Budibase instance. Because internal builder accounts can be phished or insider-abused, and because successful exploitation yields session-cookie theft leading to builder/workspace takeover, this should be treated as a high-priority patch for any multi-tenant or externally accessible deployment despite the I:L rating.

Exploit ScenarioDerived

An attacker compromises or is granted a low-privilege Builder account (or a BASIC/POWER account with WRITE on any table), authenticates to /api/global/auth/default/login, retrieves the CSRF token from Redis-backed session state, and uploads a crafted xss.svg containing <script>alert(document.domain)</script> to /api/attachments/process. The returned signed URL is then embedded in a published app screen - table attachment column, image widget, or shared link - and every end user who opens that view executes the payload in their browser, allowing session-cookie theft and account takeover, including escalation to builder/workspace control if a builder views the malicious attachment.

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 19, 2026

Stored cross-site scripting in Budibase self-hosted deployments (versions before 3.38.2) allows any authenticated user with Builder role - or any BASIC/POWER user with table WRITE permission - to upload SVG, HTML, or JavaScript files containing active content via the /api/attachments/process and /api/attachments/:tableId/upload endpoints. The files are stored in the configured object store (MinIO/S3) with their executable MIME types and served via signed URLs, so any end user viewing an attachment triggers script execution in their browser session. Publicly available exploit code exists (detailed PoC in the GHSA advisory); no public exploit identified in active campaigns at time of analysis.

RemediationAI

Vendor-released patch: 3.38.2 - upgrade Budibase to 3.38.2 or later, which incorporates PR #18763 ('[Security] Block active content attachment uploads') and unconditionally rejects html, svg, js, php, and related dangerous extensions regardless of user role; release notes at https://github.com/Budibase/budibase/releases/tag/3.38.2 and advisory at https://github.com/Budibase/budibase/security/advisories/GHSA-82rc-gxrg-v4gf. Until the upgrade is applied, compensating controls include tightening Builder and table-WRITE role assignments to a minimum trusted set (limits insider/phishing abuse but does not protect against a compromised builder), placing a reverse proxy in front of the signed-URL /files/signed/ path that forces Content-Disposition: attachment and overrides Content-Type to application/octet-stream for .svg/.html/.js (breaks legitimate inline SVG/image rendering inside apps), and enabling a strict Content-Security-Policy on the published app frontends that disallows inline scripts from object-store origins (may break legitimate custom widgets).

Affected VersionsENISA

budibase < 3.38.2

Affected Packages

npm budibase fix: 3.38.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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

Technical ContextAI · show details

Budibase is a low-code platform packaged as npm/budibase and typically deployed via Docker with Redis for session state and MinIO/S3 for object storage. The defect is a CWE-79 (Improper Neutralization of Input During Web Page Generation) instance rooted in a flawed authorization check: the dangerous-extension filter inside uploadFile (packages/server/src/api/controllers/static/index.ts lines 93-179) is gated behind if (isPublicUser) or if (isPublicUser || !env.SELF_HOSTED), so authenticated users on self-hosted instances bypass the html/svg/js/php block list entirely. Because the object store preserves the uploaded Content-Type (image/svg+xml, text/html, application/javascript), the resulting signed URL renders the payload as live web content rather than as an inert download.

Know when Docker 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

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

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

CVSS VectorGitHub Advisory

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

DescriptionGitHub Advisory

Summary

The file upload endpoint POST /api/attachments/process does not enforce active-content restrictions for authenticated users. The checks for dangerous file extensions (html, svg, js, php, etc.) are conditionally wrapped inside if (isPublicUser) or if (isPublicUser || !env.SELF_HOSTED), meaning any authenticated builder can upload executable web content - SVG files with inline <script> tags, HTML pages with JavaScript, .js modules - which are then stored in the object store (MinIO/S3) with their correct MIME types (image/svg+xml, text/html, application/javascript). When the resulting signed URL is opened by any app user, the browser executes the payload.

Impact is persistent stored XSS over all application end users.

Details

The vulnerability exists in a single handler function uploadFile shared by two routes, located in packages/server/src/api/controllers/static/index.ts (lines 93-179).

Route definitions (packages/server/src/api/routes/static.ts):

POST /api/attachments/process → authorized(BUILDER) POST /api/attachments/:tableId/upload → authorized(PermissionType.TABLE, PermissionLevel.WRITE) Both routes invoke the same uploadFile function. The second endpoint is accessible to any authenticated app user (BASIC or POWER role) who has been granted WRITE on any table - not just builders.

PoC

Prerequisites

  • Budibase self-hosted Docker deployment, any version ≤ 3.30.6
  • An account with Builder role (does not require admin)
  • Target app published and accessible to end users

Step 1 - Authenticate as builder

http
POST /api/global/auth/default/login HTTP/1.1
Host: target:10000
Content-Type: application/json

{"username":"builder@company.com","password":"BuilderPass1!"}
HTTP/1.1 200 OK
Set-Cookie: budibase:auth=<jwt>; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT
Set-Cookie: budibase:auth.sig=<sig>; path=/; expires=Tue, 19 Jan 2038 03:14:07 GMT

{"message":"Login successful"}

The CSRF token is bound to the session. Browsers send it automatically via the Budibase frontend JS. For scripted requests, decode the JWT payload (base64url second segment) to extract sessionId, then read the Redis key session-<userId>/<sessionId> → csrfToken.

Step 2 - Upload SVG with XSS payload

http
POST /api/attachments/process HTTP/1.1
Host: target:10000
Cookie: budibase:auth=<jwt>; budibase:auth.sig=<sig>
x-budibase-app-id: <dev_app_id>
x-csrf-token: <csrf_token>
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryXXXXXXXXXXXXXXXX
Content-Length: 391

------WebKitFormBoundaryXXXXXXXXXXXXXXXX
Content-Disposition: form-data; name="file"; filename="xss.svg"
Content-Type: image/svg+xml

<svg xmlns="http://www.w3.org/2000/svg"><script>alert(document.domain)</script></svg>
------WebKitFormBoundaryXXXXXXXXXXXXXXXX--
json
HTTP/1.1 200 OK

[{"size":207,"name":"xss.svg","url":"http://target:10000/files/signed/.../<uuid>.svg?X-Amz-...","extension":"svg","key":"workspace_id/attachments/<uuid>.svg"}]

Impact

  • App end users - Stored XSS on any screen containing the attachment URL. Session cookie theft → full account takeover. |
  • Builder accounts - If malicious URL is shared within the workspace (table attachment, embedded image), XSS fires in builder's session → workspace takeover.

<img width="3087" height="1489" alt="image" src="https://github.com/user-attachments/assets/b0ee0263-85de-430e-9575-88ec91eae565" />

<img width="2100" height="1016" alt="image" src="https://github.com/user-attachments/assets/5133bb1e-f637-479e-952f-14b3265129b4" />

-------- Discovered By: Abdulrahman Albatel Abdullah Alrasheed

Executive ViewAI

Why It Matters

Budibase self-hosted deployments before version 3.38.2 are vulnerable to stored script injection through file uploads: insiders with Builder role or elevated permissions can upload malicious files that compromise any end user accessing them, enabling account takeover and unauthorized data access. Publicly available exploit code exists.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict /api/attachments/process and /api/attachments/:tableId/upload endpoint access to administrative accounts only; (2) Implement strict Content Security Policy headers to block inline script execution; (3) Disable upload of SVG, HTML, and JavaScript file types where business operations permit; (4) Review and revoke elevated file upload permissions for Builder and POWER users pending vulnerability remediation; (5) Implement file type validation and sanitization on uploads.

Threat Intelligence Overview

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

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

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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

Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

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