Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain Builder or table-WRITE account
-
DeliveryAuthenticate and retrieve CSRF token
-
ExploitPOST malicious SVG/HTML to /api/attachments/process
-
InstallObject store serves signed URL with active MIME
-
C2Embed attachment in published app screen
-
ExecuteVictim opens screen, browser executes script
-
ImpactSteal 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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
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
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--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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-32596
GHSA-82rc-gxrg-v4gf
NVD
CVE.org
EPSS
VulDB
Exploit-DB