HIGHCVSS v3.1 7.7Vulnerability

CVE-2026-122244

## Description ### Summary A **low-privileged application end-user** (role `BASIC` - **not** a builder or admin, and on a public data-collection form, an unauthenticated visitor) can store an HTML/JavaScript payload in ordinary row data. When a **builder or admin** later opens that table in the Budibase Builder and evaluates any Handlebars binding whose Preview surfaces the value (the Data-section **Formula** column editor, or any binding drawer), the stored value is rendered as **raw HTML** and the attacker's JavaScript executes in the Builder's origin. The Builder SPA is served by nginx with **no Content-Security-Policy** (the CSP middleware only decorates the server-rendered *published-app* document, not `/builder/`). The injected script therefore runs unrestricted in the highest-trust surface of the product - the admin/builder session that can create datasources, run server-side JavaScript via automations, read and modify every table, and manage users. This is a **cross-privilege stored XSS** (app end-user → builder/admin), i.e. full workspace takeover, not self-XSS. ### Details **Root cause 1 - the escaper is a no-op.** `packages/frontend-core/src/utils/jsonFormatter.ts` (`format()`): ```js jsonString = jsonString .replace(/&/g, "&") // no-op: replaces "&" with "&" (should be "&amp;") .replace(/</g, "<") // no-op (should be "&lt;") .replace(/>/g, ">") // no-op (should be "&gt;") return jsonString.replace( /("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+...)/g, (match) => { if (/^"/.test(match)) { if (/:$/.test(match)) { color = colors.keyColor } // KEY: NOT escaped else { match = '"' + escapeHtml(match.substr(1, match.length - 2)) + '"' } // string VALUE: escaped } return `<span style="...">${match}</span>` }) ``` Only quoted JSON *string values* are passed through `escapeHtml`. Everything else is emitted verbatim,

Properties

Summary
Budibase: Cross-privilege Stored XSS in the Budibase Builder via broken HTML-escaping in `jsonFormatter.format()` rendered through `{@html}` in the CSP-less Builder origin
Severity
high
Nvd fetched at
2026-11-22T12:30:49.958423+00:00
Epss score
0.00678
Cvss score
7.7
Cvss severity
HIGH
Retrieved at
2026-11-22T12:32:26+00:00
Ghsa published
2026-11-20T23:49:47Z
Source url
https://github.com/advisories/GHSA-r2q3-7m4h-63qg
Ghsa updated
2026-11-20T23:49:49Z
Ghsa id
GHSA-r2q3-7m4h-63qg
Last source
FIRST EPSS
Score
7.7
Cvss version
3.1
Cve id
CVE-2026-122244
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N
First seen by Signal
2026-11-20T19:45:57+00:00
Name
CVE-2026-122244
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N

Related Entities (5)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-122244 (CVSS v3.1 7.7) — Ninja Signal Threat Intelligence | Ninja Signal