Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege table-read user
-
DeliveryInject {{ js }} Handlebars helper into search filter value
-
ExploitenrichSearchContext runs base64 JS in isolated-vm sandbox
-
ExecutionRead user context ($user.oauth2 tokens)
-
ImpactExfiltrate SSO OAuth2 access/refresh tokens
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Requires an authenticated Budibase account holding TABLE READ permission on a table, and a default deployment where JavaScript helpers are enabled - i.e. the NO_JS environment variable is NOT set (the default) and setJSRunner() has initialized the JS runner at startup, so the Handlebars 'js' helper is active even when noHelpers is true. The attacker sends a POST to the row search endpoint (/api/<TABLE_ID>/search) with a query filter value containing {{ js "<base64>" }}. Limiting factors: exploitation is gated behind valid authentication plus table-read authorization (not anonymous); the highest-value outcome - theft of OAuth2 access/refresh tokens - only applies to environments with SSO/OAuth2 users whose bindings populate user context; code execution is confined to an isolated-vm sandbox; and DoS is bounded by JS_RUNNER_MEMORY_LIMIT and JS_PER_INVOCATION_TIMEOUT_MS. Deployments that set NO_JS are not exploitable via this path. |
| Impact | This is a moderate, authentication-gated priority rather than an internet-wide emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N, VC:H/VI:L/VA:L, base 7.2) and the vendor evidence agree on mechanism: a network-reachable, low-complexity flaw that requires authenticated access (PR:L) - specifically a user holding TABLE READ permission - so it is not exploitable by anonymous attackers. The vuln.today decision label is 'this_week' and VulnCheck is the reporting source, which signals meaningful but not top-tier urgency. No EPSS score is provided and there is no CISA KEV listing, so there is no evidence of mass or automated exploitation; the SSTI executes inside an isolated-vm sandbox, which caps the technical impact to data disclosure (OAuth2 access/refresh tokens for SSO users) and limited DoS rather than full host RCE. A detailed public PoC reference exists in the GHSA advisory (HTTP request plus base64 payloads), which raises practical exploitability for anyone with a valid low-privilege account. Net: treat as a real but access-limited priority - patch within the vendor/priority window, prioritizing instances that use SSO/OAuth2 and allow many low-trust users to hold table read rights. |
| Exploit ScenarioDerived | An authenticated Budibase user who only holds TABLE READ permission submits a crafted row-search request whose filter value contains a Handlebars js helper (e.g. {{ js "<base64>" }}), which enrichSearchContext() evaluates server-side in an isolated-vm sandbox. The injected JavaScript reads the template context via $("user.oauth2.accessToken"), exfiltrating OAuth2 access/refresh tokens of SSO users, or runs a busy loop to cause denial of service. A working-looking PoC with base64 timing and context-access payloads is published in the GHSA advisory, lowering the bar to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Budibase Server deployments prior to 4.0.0 expose a server-side template injection path in the row search endpoint: any authenticated account holding TABLE READ permission on a table can place {{ js "<base64>" }} into a search filter value, and the value is rendered as a Handlebars template with the js helper active, so base64-encoded JavaScript runs inside the server's isolated-vm sandbox. From that sandbox context an attacker can reach user bindings including OAuth2 access and refresh tokens for SSO users, and can also burn CPU up to the configured runner memory and per-invocation time limits, making denial of service possible but bounded. Exploitation is gated behind a valid login plus table-read authorization, and is not reported as actively exploited (no CISA KEV listing); the vendor advisory itself documents a working proof-of-concept request, but it is not verified as distributed exploit code, and the priority call is this_week rather than emergency.
RemediationAI
Upgrade to Budibase 4.0.0 or later, which is the vendor-released patch for this issue (npm @budibase/server 4.0.0); the advisory at https://github.com/Budibase/budibase/security/advisories/GHSA-w7m4-jhq6-jmrg tracks the fix. If upgrading cannot happen immediately, set the NO_JS environment variable on the server, which makes isJSAllowed() return false and causes processJS() to throw before any payload is decoded or executed; the trade-off is that every legitimate JavaScript binding, automation and custom query relying on the js helper stops working until the variable is removed, so this suits environments that do not use JS-backed bindings but is disruptive elsewhere. Tightening the blast radius independently is worthwhile: review which accounts hold TABLE READ permission and remove it from users who do not need it (this reduces the population of accounts that can reach the vulnerable path but does not close the flaw), and for SSO-heavy deployments rotate OAuth2 access and refresh tokens and review third-party OAuth2 provider logs for use of tokens tied to Budibase user bindings, since those credentials are the primary data at risk. Administrators should also review the configured JS_RUNNER_MEMORY_LIMIT and JS_PER_INVOCATION_TIMEOUT_MS values, which bound but do not prevent the denial-of-service component, and validate the NO_JS setting explicitly rather than assuming the default on instances configured by others.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw sits in Budibase's string-templates package and its interaction with the row search controller. In src/packages/server/src/api/controllers/row/utils/utils.ts, enrichSearchContext() walks the user-supplied search query object and passes every string value through processStringSync() with noEscaping and escapeNewlines set, and with helpers enabled (noHelpers: !helpers). Because the js helper is registered through registerMinimum() as part of the HELPERS array, it remains available even if helper suppression were requested. The js helper calls processJS(), which base64-decodes the supplied payload and executes it via IsolatedVM.execute(); isJSAllowed() returns true unless the NO_JS environment variable is set, and the runner is wired at startup via setJSRunner() in startup/index.ts, so a stock deployment has JavaScript execution enabled. The Helper class wrapper hands info.data.root - the template context, which the search controller populates with sdk.users.getUserContextBindings(ctx.user) - into processJS() as the sandbox context, which is why $("user.email") or $("user.oauth2.accessToken") resolve inside the injected script. The root cause class is CWE-1336, improper neutralization of special elements used in a template engine: user-controlled data reaches a template evaluator rather than being treated as an inert filter literal. Containment comes only from the isolated-vm sandbox, which is bounded by JS_RUNNER_MEMORY_LIMIT and JS_PER_INVOCATION_TIMEOUT_MS; the sandbox limits blast radius but does not prevent the token exposure, which stems from what the context object contains rather than from a sandbox escape.
Know when Budibase gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N
Network-reachable search endpoint (AV:N/AC:L) but requires an authenticated table-read user (PR:L); sandboxed JS yields high confidentiality (OAuth2 token theft) with only limited integrity and bounded DoS impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) - server-side template injection in Budibase's own row-search enrichment.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-137496 is a high-severity server-side template injection vulnerability in Budibase Server versions prior to 4.0.0. Any authenticated user with basic table-read permissions can potentially execute arbitrary JavaScript within the server's sandbox, risking exposure of OAuth2 tokens for SSO users and enabling bounded denial-of-service. While not currently known to be actively exploited, the availability of a working proof-of-concept and the low privilege barrier make this a priority for remediation this week.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting access to Budibase Server to trusted networks, enforcing strict least-privilege on table read permissions, and monitoring for anomalous requests to row search endpoints. Disabling the Handlebars js helper if feasible, though this may impact functionality.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal
SQL injection in Budibase's MySQL integration (all versions prior to 3.40.0) lets attackers execute arbitrary, stacked S
Authorization bypass in Budibase 3.31.4 and earlier. The authorized() middleware can be bypassed, enabling injection att
Authentication bypass in Budibase low-code platform (versions prior to 3.35.4) allows remote unauthenticated attackers t
Budibase is a low code platform for creating internal tools, workflows, and admin panels. [CVSS 8.8 HIGH]
Unauthenticated remote attackers can defeat the one-time initialization lock on self-hosted, single-tenant Budibase depl
Unauthenticated user enumeration and metadata disclosure in Budibase prior to 3.39.32 exposes tenant identifiers, email
Server-Side Request Forgery (SSRF) in Budibase's REST datasource connector (versions prior to 3.33.4) allows authenticat
OAuth2 access and refresh token theft in Budibase's automation testing pipeline exposes SSO-authenticated builder creden
Improper Control of Dynamically-Managed Code Resources in GitHub repository budibase/budibase prior to 1.3.20. Rated med
Path traversal in Budibase low-code platform 3.31.5 and earlier allows attackers to read arbitrary files through the app
Remote code execution in Budibase self-hosted server before 3.41.3 lets authenticated administrators run arbitrary JavaS
EUVD-2026-136578
NVD
CVE.org
EPSS
GitHub
Exploit-DB