CVE-2026-122244: Cross-Privilege Stored XSS in Budibase Builder via jsonFormatter and {@html}
What's the vulnerability?
CVE-2026-122244 is a stored cross-site scripting (XSS) flaw in the Budibase Builder caused by broken HTML-escaping in the jsonFormatter.format() helper. The formatter's output is rendered through Svelte's {@html} directive, which injects raw HTML into the DOM without sanitization. Compounding the issue, the Builder origin ships without a Content-Security-Policy, removing a key mitigating control that could otherwise have blocked inline script execution.
This combination creates a cross-privilege attack path: a low-privileged tenant user can store malicious JSON (via automation configs, table data, or datasource values) containing HTML/script markup. When a higher-privileged Builder or admin user later views that data rendered as formatted JSON, the payload executes in their browser session — in the Builder origin, with no CSP to stop it.
Affected software
- Package:
@budibase/server(npm) - Affected versions: <= 3.38.1
- Patched version: not yet specified in upstream advisories at time of writing
CVSS score: 7.7. Weakness classes: CWE-79 (Cross-Site Scripting), CWE-116 (Improper Encoding or Escaping of Output), CWE-1021 (Improper Restriction of Rendered UI Layers or Frames).
Exploitation status
A public proof-of-concept exists for this vulnerability (poc-public). It was disclosed on November 20, 2026. While not yet observed as weaponized in the wild or added to a known-exploited-vulnerabilities catalog, the combination of a public PoC, low attacker privilege requirements, and a high-value escalation path (admin session theft, API-key exfiltration) makes this a strong candidate for rapid weaponization. Defenders running multi-tenant Budibase instances should treat this as an active risk, not a theoretical one.
How our detection catches it
We ship coverage across seven SIEM platforms — Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L), and CrowdStrike (CQL) — built around three detection surfaces:
- Ingestion-side: identifying XSS payloads (script tags, event handlers, encoded markup) being stored through Budibase server APIs when submitting automation, table, or datasource JSON values.
- Rendering-side: flagging anomalous Builder-origin HTTP responses that contain unescaped HTML/script markup in JSON-formatted fields, indicating the broken escaping path is being triggered.
- Post-exploitation: monitoring for outbound beaconing or unexpected network connections originating from admin browser sessions shortly after Builder JSON content is rendered — a signal consistent with session theft or API-key exfiltration following successful script execution.
Together, these layers let defenders catch the attack at storage time, at render time, and at the point of actual compromise, without relying on any single stage to be visible.
Full detection details
For the complete KQL, SPL, and other SIEM queries, investigation guidance, and atomic tests for this detection, see the full detection page for CVE-2026-122244.