Detect Budibase Anonymous NoSQL Operator Injection via Published-App Query Templates in Elastic Security
CVE-2026-54350 is a critical (CVSS 10.0) NoSQL operator injection vulnerability in @budibase/server versions prior to 3.39.12. Unauthenticated attackers can inject MongoDB-style operators (e.g., $gt, $where, $regex) into published-app query templates, bypassing authentication and data access controls. Successful exploitation can lead to full database exfiltration, authentication bypass, and remote code execution via $where clauses. A public PoC is available.
MITRE ATT&CK
Elastic Detection Query
sequence by source.ip with maxspan=10m
[network where event.category == "network" and
(url.path like~ "/api/public/v1/queries*" or url.path like~ "/api/v1/queries*") and
(http.request.body.content like~ "*\$gt*" or
http.request.body.content like~ "*\$where*" or
http.request.body.content like~ "*\$regex*" or
http.request.body.content like~ "*\$exists*" or
http.request.body.content like~ "*\$ne*" or
http.request.body.content like~ "*\$in*" or
http.request.body.content like~ "*\$nin*" or
http.request.body.content like~ "*\$or*" or
url.query like~ "*\$gt*" or
url.query like~ "*\$where*" or
url.query like~ "*\$regex*")
] with runs=1 Elastic EQL sequence rule detecting NoSQL operator injection payloads in HTTP request bodies or query strings targeting Budibase query API endpoints. Uses EQL sequence to capture repeated attempts from the same source IP.
Data Sources
Required Tables
False Positives & Tuning
- Automated API clients sending complex MongoDB query objects to Budibase for legitimate data operations
- Internal integration tests that construct realistic NoSQL queries against test Budibase instances
- Security tools performing continuous compliance scanning of Budibase deployments
Other platforms for CVE-2026-54350
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Basic NoSQL Operator Injection via Budibase Published Query API
Expected signal: HTTP POST request to /api/public/v1/queries/{id} with JSON body containing '$gt' operator visible in web proxy logs or network capture
- Test 2JavaScript Execution via $where NoSQL Operator (RCE Path)
Expected signal: HTTP POST with '$where' string in request body; potentially elevated response time if JavaScript executes; MongoDB slow query log entry if profiling enabled
- Test 3Authentication Bypass via $ne Operator on User Collection Query
Expected signal: POST request to Budibase query endpoint with $ne operators in both username and password fields; HTTP 200 response with user record(s) returned if vulnerable
- Test 4Data Exfiltration via $regex Operator Enumeration
Expected signal: Series of POST requests to same Budibase query endpoint with varying $regex patterns; observable as repeated requests with incrementing operator values in proxy logs
Unlock Pro Content
Get the full detection package for CVE-2026-54350 including response playbook, investigation guide, and atomic red team tests.