{"id":"CVE-2026-122244","aliases":["GHSA-r2q3-7m4h-63qg"],"title":"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","originalDescription":"Budibase is an open-source low-code platform. Prior to 3.50.0, a BASIC application user, or an unauthenticated visitor to a public write form, can store markup in a shared external datasource that a builder or administrator later evaluates in any Handlebars binding Preview that surfaces the value, including the Data-section Formula column editor or any binding drawer. jsonFormatter.format() in packages/frontend-core/src/utils/jsonFormatter.ts leaves raw strings and object keys unescaped, while packages/builder/src/components/common/bindings/EvaluationSidePanel.svelte inserts the formatted result as raw HTML. The Handlebars SafeString path preserves the attacker-controlled value, and the Builder origin lacks a Content-Security-Policy that would block the resulting script. This permits stored script execution in the higher-privileged builder or administrator session rather than the writer's own role, allowing privileged Builder API actions and workspace data access. This issue is fixed in versions 3.50.0 and 4.0.0.","severity":{"cvss":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00402,"percentile":0.26045},"exploitDb":null},"affected":[{"ecosystem":"npm","name":"@budibase/server","range":"<= 3.38.1","fixed":null}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-r2q3-7m4h-63qg","type":"x_refsource_CONFIRM"},{"url":"https://github.com/Budibase/budibase/commit/5f37fb43728639c540cc7233283f1100e9315424","type":"x_refsource_MISC"},{"url":"https://github.com/Budibase/budibase/releases/tag/v3.50.0","type":"x_refsource_MISC"},{"url":"https://github.com/Budibase/budibase/releases/tag/v4.0.0","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/122xxx/CVE-2026-122244.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122244","type":"advisory"},{"url":"https://github.com/advisories/GHSA-r2q3-7m4h-63qg","type":"other"},{"url":"https://github.com/Budibase/budibase","type":"package"}],"sources":[{"name":"nvd","at":"2026-11-20T19:42:57.280Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-122244","license":"NVD terms of use","firstSeenAt":"2026-11-20T17:31:12.202Z"},{"name":"osv","at":"2026-11-21T00:07:38.875Z","url":"https://osv.dev/vulnerability/GHSA-r2q3-7m4h-63qg","license":"CC-BY 4.0","firstSeenAt":"2026-11-20T18:04:42.563Z"},{"name":"ghsa","at":"2026-12-01T12:25:20.485Z","url":"https://github.com/advisories/GHSA-r2q3-7m4h-63qg","license":"CC-BY 4.0","firstSeenAt":"2026-11-21T00:07:16.119Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:23.895Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-122244","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T16:55:31.196Z"}],"firstSeenAt":"2026-11-20T16:55:31.196Z","publishedAt":"2026-11-20T16:50:06.338Z","modifiedAt":"2026-11-21T00:00:03.997Z"}