All vulnerabilities

Servers and applications

CVE-2026-48149

Stored XSS in Text component: BASIC users execute JS in admin session via MarkdownViewer innerHTML + CDN+srcdoc CSP bypass

Severity
High 8.1
Published
21 May 2026
Last changed
21 May 2026
Added to UpHeron
3 Nov 2026
Fixed in
3.39.0
Exploit chance
0.2% in the next 30 daysHigher than 13% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Also known as
GHSA-57p7-9h9w-xqpw
Sources
Project advisories (GitHub)

Description

The Budibase Text component renders markdown by assigning marked.parse(markdown) straight to innerHTML with no sanitizer (packages/bbui/src/Markdown/MarkdownViewer.svelte:22). Any column a builder binds to a Text component in Markdown mode is a stored-XSS sink writable by every BASIC app user with WRITE on the underlying table. Bob, an App User that Alice invited as BASIC, submits a row whose body contains an that loads a script from d2l5prqdbvm3op.cloudfront.net, the CloudFront distribution that serves both Budibase's own runtime and user-uploaded attachments. That origin is on the app's CSP script-src allowlist. The srcdoc document inherits the parent CSP and is same-origin with the Budibase app, so Bob's script runs as Alice the moment she opens the screen. Verified end-to-end on Budibase Cloud (iwnyub5k.budibase.app) and on self-hosted 3.35.8 at master f960e361`.

packages/bbui/src/Markdown/MarkdownViewer.svelte:22:

From Budibase/budibase's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
BudibaseServers and applications · github:budibase/budibase
  • Every version before 3.39.0

About Budibase

low-code development platform

From Wikidata, CC0 1.0.
Docker Hub pulls
2,327,272Docker Hub, 15 Nov 2026
GitHub stars
28,419GitHub, 15 Nov 2026
Forks
2,238GitHub, 15 Nov 2026
Latest release
v4.0.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
First published on GitHub
7 Jun 2019GitHub

References