Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as BUILDER-role user
-
DeliveryIdentify parameterized MongoDB query
-
ExploitCraft parameter value with JSON metacharacters
-
InstallPOST to /api/v2/queries/:queryId
-
C2Bypass enrichContext() interpolation filter
-
ExecuteAltered query executes against MongoDB
-
ImpactRead, modify, or delete arbitrary documents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Exploitation requires an authenticated session with Budibase BUILDER role (query write permission) - PR:L in the CVSS 4.0 vector confirms a low-privilege authenticated user is required, not an unauthenticated attacker. The vulnerable endpoint is POST /api/v2/queries/:queryId and is only reachable when a MongoDB datasource is configured with saved parameterized queries. The specific limiting conditions are: (1) the attacker must hold or have compromised a BUILDER-level Budibase account; (2) a MongoDB-backed query with at least one user-controlled parameter must exist in the workspace. Exploitation is constrained entirely to the MongoDB database(s) connected to Budibase - it does not provide OS-level access or affect other datasource types. Anonymous or read-only (APP_USER) roles cannot trigger this endpoint. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L) accurately reflects the risk profile: network-exploitable, low complexity, no user interaction, but gated by a low-privilege authentication requirement (BUILDER/query-write role). This PR:L gate is the single most important limiting factor - exploitation is not possible for anonymous users against a default deployment. EPSS data is not provided in the source intelligence, so probabilistic exploitation likelihood cannot be quantified here; however, the NoSQL injection pattern is well-understood and straightforward to execute once the prerequisite role is held, meaning internal threats or compromised BUILDER accounts represent a realistic path. The vulnerability is not in CISA KEV and no public proof-of-concept exploit has been identified, which moderates urgency relative to the high CVSS score. That said, organizations running Budibase with multiple users holding query write permissions - even a mid-sized internal deployment - should treat this as a priority patch given the direct data-manipulation impact on MongoDB collections. The availability impact is rated Low in the CVSS 4.0 vector, which is consistent: deleteMany can destroy data but does not directly affect service uptime. |
| Exploit ScenarioDerived | An attacker who holds a Budibase BUILDER account - or has compromised one - crafts a POST request to /api/v2/queries/:queryId for a saved MongoDB query that uses a parameter such as username. By supplying the value ", "$ne": " as the parameter, the interpolated JSON becomes {"username": "", "$ne": ""}, causing MongoDB to return all documents where username is not empty rather than matching a specific user, effectively bypassing the query's intended filter. The same technique can be adapted to delete arbitrary documents using a deleteMany-backed query. No public proof-of-concept exploit has been identified at time of analysis, but the injection pattern is elementary for anyone familiar with NoSQL injection fundamentals. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
NoSQL injection in Budibase Server's MongoDB query execution endpoint (POST /api/v2/queries/:queryId) allows authenticated users with query write permission to bypass document-level filters and read, modify, or delete arbitrary MongoDB documents. The flaw stems from Handlebars interpolation being performed with escaping explicitly disabled (noEscaping: true), meaning JSON metacharacters in user-supplied parameters survive into the parsed query object that flows directly to MongoDB driver calls. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in CISA KEV; however, a patch commit and PR are publicly available on GitHub.
RemediationAI
Upgrade @budibase/server to version 3.40.0 or later as described in GHSA-qw6m-8fw2-2v64 (https://github.com/Budibase/budibase/security/advisories/GHSA-qw6m-8fw2-2v64). Note that the patch PR (#18907, commit 2d6c1d17cff8a653adbb2f9003eda9de38c7670f) is publicly available on GitHub but a formally released patched version was listed as 'None' in the package metadata at time of analysis - the fix version of 3.40.0 comes from the CVE description and GHSA, and should be independently verified against the official npm registry before upgrading in production. If immediate patching is not feasible, restrict the BUILDER role to fully trusted internal users only, since exploitation requires query write permission; removing this role from external or semi-trusted users eliminates the attack surface without impacting read-only consumers. Additionally, consider placing a WAF rule or reverse proxy filter on POST /api/v2/queries/:queryId to reject requests containing JSON metacharacters (double-quote, curly braces) in parameter values, though this may cause false positives for legitimate queries containing string data with those characters.
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
Budibase (CPE: cpe:2.3:a:budibase:server:*:*:*:*:*:*:*:*) is an open-source low-code platform. Its server exposes a MongoDB query execution endpoint that uses Handlebars templating to interpolate user-supplied parameters into saved JSON query templates. The root cause (CWE-943: Improper Neutralization of Special Elements in Data Query Logic) arises from a misaligned validation-interpolation pipeline: validateQueryInputs() only blocks Handlebars binding syntax ({{ }}) while leaving JSON structural characters (double-quote, braces) unsanitized. Interpolation then runs with noEscaping: true, so injected characters survive into the string that is parsed by JSON.parse() and passed verbatim to MongoDB driver methods such as collection.find(), collection.deleteMany(), etc. Classic $ne-style operator injection is the primary exploit primitive exposed by this architecture.
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:H/VA:L/SC:N/SI:N/SA:N
Network-accessible endpoint, low complexity; PR:L because BUILDER role is required; no scope change; availability is Low since deleteMany can destroy data but not halt the service.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Budibase Server before 3.40.0 contains a NoSQL injection vulnerability in the MongoDB query execution endpoint where user-supplied parameters are interpolated into JSON query templates without proper sanitization of JSON metacharacters. Attackers with query write permission can inject JSON structural characters to alter MongoDB queries, bypassing filters to read, modify, or delete arbitrary documents.
Executive ViewAI
Budibase Server contains a NoSQL injection vulnerability in its MongoDB query endpoint that allows authenticated users with query-write permissions to bypass data access controls and read, modify, or delete arbitrary database records. This threatens data confidentiality and integrity for organizations using Budibase to manage sensitive information, particularly those with multi-user deployments.
Restrict query-write permissions to only essential administrators; implement MongoDB document-level access controls and enable comprehensive audit logging; require multi-factor authentication for all Budibase administrative accounts; segment Budibase instances from other production systems; establish a ticketed approval process for query-write access requests; monitor audit logs for unauthorized data access attempts; remediation code is available in the Budibase GitHub repository for organizations that can build and test from source.
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-57822
GHSA-wg7g-xr7v-hf69
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB