Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain BASIC user credentials for target app
-
DeliveryIdentify MongoDB-backed query with Handlebars parameter binding
-
ExploitSubmit crafted payload containing MongoDB $-operator through query parameter
-
InstallHandlebars renders payload verbatim (noEscaping: true) into query JSON string
-
C2JSON.parse promotes injected operator into structured query object
-
ExecuteMongoDB executes injected operator against collection
-
ImpactExfiltrate all documents or execute $where JavaScript
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Three conditions must all hold: (1) the attacker possesses a valid, authenticated BASIC user account in the target Budibase application - unauthenticated exploitation is not possible, as confirmed by PR:L in the CVSS 4.0 vector; (2) the application uses the MongoDB datasource integration - SQL, REST, and other datasource types follow a separate parameterized code path and are unaffected; (3) at least one MongoDB query is configured with Handlebars parameter bindings that incorporate user-supplied values, specifically the pattern |
| Impact | The CVSS 4.0 score of 7.1 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N reflects network-accessible exploitation requiring only low-privilege authentication and yielding high confidentiality impact. However, the VI:L (low integrity) rating is in tension with the advisory's explicit statement that attackers can perform arbitrary collection updates and deletes - a capability that arguably warrants VI:H; security teams should verify the actual write-operation scope with the vendor before relying on the published score for prioritization. No EPSS score was provided and this CVE is not listed in the CISA KEV catalog, so no quantitative exploitation probability is available. The lack of confirmed active exploitation is partially offset by the fact that the vulnerable pattern ( |
| Exploit ScenarioDerived | An authenticated BASIC user submits a crafted input to a Budibase query parameter that injects a MongoDB operator - for example, supplying a value such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
NoSQL injection in Budibase's MongoDB datasource integration (versions before 3.40.0) allows any authenticated BASIC user to bypass per-user query-level access controls by injecting MongoDB operators into query parameters. The root cause is Handlebars enrichment configured with noEscaping: true followed by JSON.parse, which promotes attacker-supplied $-prefixed operators directly into MongoDB query documents without filtering - enabling full collection dumps, server-side JavaScript execution via $where, and unauthorized update or delete operations. No public exploit has been identified at time of analysis, though upstream fix commits are available and the vulnerability targets a configuration pattern recommended in Budibase's own documentation.
RemediationAI
Upgrade Budibase server to version 3.40.0 or later, which is the fix boundary stated in the CVE description. The upstream fix is implemented in GitHub PR #18907 (https://github.com/Budibase/budibase/pull/18907) and commit dd8c0654b35cd89ce3645f2355f4bf2ff9a5dd80; however, a tagged release at exactly 3.40.0 has not been independently verified beyond the CVE description's boundary statement - confirm the release tag before deploying in production. If immediate upgrade is not feasible, the most targeted compensating control is to disable or restrict access to any Budibase applications that use the MongoDB datasource integration, particularly those where queries include Handlebars bindings over user-controlled parameters such as {{ currentUser.email }}. Removing user-controlled parameter bindings from MongoDB queries and replacing them with server-side static filters eliminates the injection surface but requires rebuilding affected app queries. Restricting BASIC user access to MongoDB-backed applications is a viable but disruptive interim measure. Full advisory at https://github.com/Budibase/budibase/security/advisories/GHSA-pmpg-2mxq-6xwr.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-943 (Improper Neutralization of Special Elements in Data Query Logic - NoSQL) describes the root cause class precisely. In packages/server/src/sdk/workspace/queries/queries.ts (lines 105-125), Handlebars enriches every query string field using noEscaping: true, which is equivalent to triple-brace {{{...}}} rendering - all characters including double quotes and braces pass through unescaped. The enriched JSON string is then passed to JSON.parse, promoting attacker-controlled key-value pairs, including MongoDB $-prefixed operators, into a structured query object. In packages/server/src/integrations/mongodb.ts (lines 499-512), createObjectIds rewrites ObjectId(...) strings but performs no operator filtering, so the injected document reaches collection.find(), collection.update(), or collection.deleteOne() unchanged. By contrast, SQL datasources are protected through interpolateSQL() at packages/server/src/threads/query.ts:145, which uses driver-level bind variables. The affected CPE is cpe:2.3:a:budibase:server:*:*:*:*:*:*:*:* (npm package @budibase/server versions through 3.38.1).
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:N/SC:N/SI:N/SA:N
Network-accessible with low complexity; PR:L for required BASIC account; S:C for cross-user data scope change; I:H given explicit arbitrary update/delete capability; A:L from potential document deletion.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Budibase before 3.40.0 contains a NoSQL injection vulnerability in the MongoDB datasource integration where user-supplied parameters are enriched with handlebars using noEscaping: true and parsed without operator filtering. Attackers can inject MongoDB operators through query parameters to bypass per-user access controls, read arbitrary documents, execute JavaScript via $where operators, or modify collections through update and delete operations.
Executive ViewAI
Budibase versions prior to 3.40.0 contain a critical database access control bypass in the MongoDB integration that allows basic users to read, modify, or delete protected data without authorization. This exposes any organization using Budibase's MongoDB datasource to data breach, compliance violations, and operational disruption. Immediate action to restrict access or upgrade is essential to prevent unauthorized database activity.
Restrict MongoDB datasource access to trusted database administrators only; disable this integration for non-critical applications until an official patch is available; implement regular review of database audit logs for suspicious data access patterns; prepare expedited upgrade procedures and testing plans for rapid deployment once Budibase 3.40.0 is released.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
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
Budibase is a low code platform for creating internal tools, workflows, and admin panels. [CVSS 8.8 HIGH]
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
Account enumeration and targeted denial-of-service in Budibase prior to 3.39.25 stem from an observable response discrep
Unauthenticated account takeover of pending invited users in Budibase Server (@budibase/server) versions 3.41.0 through
EUVD-2026-57821
GHSA-rqxq-f5cc-3xp6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB