CVE-2026-137496: Budibase before 4.0.0 SSTI via enrichSearchContext in Row Search
Budibase before 4.0.0 contains a server-side template injection vulnerability that allows authenticated users with table read permission to execute JavaScript by injecting Handlebars js helpers into row search query values. Attackers can submit base64-encoded JavaScript through the search endpoint, which enrichSearchContext() runs in an isolated-vm sandbox, to read OAuth2 access and refresh tokens of SSO users or cause denial of service.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An attacker must be authenticated and have read permission on a table. The vulnerable path is the Row Search endpoint.
What access can an attacker obtain?
An attacker can execute JavaScript in the isolated-vm sandbox by supplying base64-encoded JavaScript in row-search query values. The described impact includes reading OAuth2 access and refresh tokens belonging to SSO users, as well as causing denial of service.
Are deployments using SSO at particular risk?
Yes. The stated confidentiality impact is theft of OAuth2 access and refresh tokens for SSO users, so environments with SSO users have token exposure if a qualifying authenticated table reader exploits the issue.
Which versions are affected?
Budibase versions before 4.0.0 are affected. The provided data does not identify any other affected version ranges or configuration prerequisites.