CVE-2026-122244: Budibase app users, or anonymous visitors to a public form, could plant script that runs in a builder's or admin's session when they preview a Handlebars binding (fixed 3.50.0)
A BASIC Budibase app user, or an unauthenticated visitor to a public write form, could store HTML/JavaScript in ordinary row data. When a builder or admin later evaluated a Handlebars binding whose Preview showed that value (for example the Formula column editor or any binding drawer), it rendered as raw HTML and the script ran in the Builder origin, which had no Content-Security-Policy. That gives the attacker the builder's privileges. Fixed in 3.50.0 and 4.0.0.
What it is
jsonFormatter.format() in packages/frontend-core/src/utils/jsonFormatter.ts only escaped quoted JSON string values; plain strings and object keys were returned unescaped, and EvaluationSidePanel.svelte inserted the result with {@html}.
The Builder SPA served by nginx had no Content-Security-Policy, so the injected script could use the builder or admin session: create datasources, run server-side JavaScript via automations, read and change every table and manage users.
The GitHub advisory (published 20 November 2026) lists @budibase/server <= 3.38.1 as affected; the CVE record says versions before 3.50.0 and that 3.50.0 and 4.0.0 contain the fix (commit 5f37fb4).
How to check
- Check your Budibase version: anything before 3.50.0 is affected.
- Review tables that public forms or BASIC users can write to for stored <script>, <img onerror> or similar markup.
How to fix
- Upgrade Budibase to 3.50.0 or later (4.0.0 also contains the fix).
- Until then, avoid previewing bindings over data written by app users or public forms, and add a Content-Security-Policy for /builder/ at your proxy.
Sources
- criticalBudibase before 4.0.0: unverified-email SSO takeover of Builder accounts, anonymous MongoDB filter erasure and cross-tenant file deletion (CVE-2026-137499, CVE-2026-137498, CVE-2026-137494)
- highCVE-2026-137497: Budibase's unauthenticated public settings endpoint returned the tenant's legacy LiteLLM virtual key and secret (fixed 4.0.0)
- highCVE-2026-122247: Budibase's public /api/global/users/init endpoint trusted an attacker-chosen tenantId, letting anyone bypass the one-time setup guard and create global-admin records and new databases (fixed 3.50.0)