CVE-2026-137496 in Budibaseinfo

Summary

by MITRE • 11/26/2026

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.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in Budibase versions prior to 4.0.0 represents a critical server-side template injection flaw that exploits the application's search functionality through Handlebars JavaScript helpers. This security defect allows authenticated users who possess table read permissions to execute arbitrary code within the backend environment. The core of the issue lies in how the application processes user-supplied input for row searches, specifically failing to adequately sanitize or restrict the types of data structures and functions that can be passed into the templating engine. By injecting malicious Handlebars helpers directly into search query values, an attacker can bypass standard validation checks and trigger code execution on the server side, turning a routine administrative action into a vector for severe compromise.

The technical mechanism involves the submission of base64-encoded JavaScript payloads through the application's search endpoint. Upon receipt, these inputs are processed by the enrichSearchContext function, which is designed to operate within an isolated-vm sandbox environment intended to contain and limit the impact of such operations. However, the implementation contains a flaw that allows the injected code to escape or interact with the broader context in ways not anticipated by the developers. This failure enables the execution of JavaScript commands that can access sensitive internal states and resources, effectively neutralizing the protective boundaries provided by the sandboxing mechanism for specific attack vectors involving template injection helpers.

The operational impact of this vulnerability is significant, primarily due to its potential for unauthorized data exfiltration and service disruption. Attackers leveraging this flaw can read OAuth2 access and refresh tokens associated with Single Sign-On users. The theft of these credentials allows adversaries to impersonate legitimate users, potentially gaining elevated privileges or accessing sensitive organizational data without further authentication barriers. Additionally, the vulnerability can be exploited to cause a denial of service by consuming excessive server resources through maliciously crafted queries, thereby disrupting availability for other users and impacting business continuity.

From an industry standards perspective, this flaw aligns with CWE-94, which describes Improper Control of Generation of Code or Script, specifically highlighting issues where user input is used to generate code without proper validation. It also relates to CWE-78, the OS Command Injection category in broader terms of server-side execution risks, though it is more precisely a template injection issue. In the context of the MITRE ATT&CK framework, this vulnerability facilitates techniques associated with Initial Access and Credential Access, as well as Execution via Server-Side Template Injection. The ability to extract OAuth tokens places it firmly within tactics aimed at maintaining persistent access through stolen credentials rather than just immediate exploitation for system control.

Mitigation strategies must prioritize an immediate upgrade to Budibase version 4.0.0 or later, where these specific injection vectors have been addressed by the development team. Until such updates are applied, administrators should enforce strict input validation on all search parameters and restrict table read permissions to only those users who absolutely require them. Implementing a Web Application Firewall with rules specifically targeting Handlebars syntax patterns in query strings can provide an additional layer of defense against exploitation attempts. Furthermore, monitoring for unusual spikes in server resource usage or anomalous authentication token access patterns can help detect ongoing attacks early, allowing for rapid incident response and containment before significant data loss occurs.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00575

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!