Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore
Security NewsNews Explainer

Budibase PUBLIC Query Bypass Exposes MongoDB Collections

Budibase PUBLIC query bypass can erase MongoDB filters in published apps. Check affected query settings, review collection activity, and update to 4.0.0.

By
Brandefense Research Team
Reviewed by
Brandefense Analyst Team
Published
27 November 2026
Reading time
8 min read
Application query filter and one database collection

Budibase PUBLIC query bypass can turn a builder’s narrow MongoDB filter into an empty one. The result depends on the published query: a read can expose its selected collection, while a bulk write can change or delete that collection’s documents. Teams running Budibase Server from 3.39.18 to before 4.0.0 should identify affected published apps and move to 4.0.0.

The Budibase GitHub security advisory describes this path through PUBLIC query templates. The CVE Program record assigns it CVE-2026-137498 and identifies 4.0.0 as the fixed version. Neither source establishes an incident at a customer environment.

How Does the Budibase PUBLIC Query Bypass Reach MongoDB?

A Budibase builder can create a MongoDB datasource and publish an app that executes a query as PUBLIC. The advisory’s affected pattern uses a request parameter to supply a JSON key inside that query. This gives an anonymous caller influence over a part of the filter that the builder may consider fixed.

The server first processes the dynamic key into a JavaScript object. A second template pass then copies that key into an ordinary object. For a reserved prototype property, JavaScript treats the assignment differently from an ordinary data field. The intended predicate disappears, leaving an empty filter for the MongoDB adapter.

How the query scope changes
  1. Published appA builder exposes a MongoDB query with PUBLIC execution permission.
  2. Dynamic keyA request parameter supplies a key inside the stored filter.
  3. Second template passObject construction drops the intended predicate.
  4. MongoDB adapterThe resulting empty filter reaches the selected collection.

The flow summarizes the advisory without reproducing a request or payload. The important boundary is between a builder-defined condition and a caller-controlled key. A query may look restricted in the app configuration while its executed filter has lost that restriction.

PUBLIC authorization also matters. The advisory says Budibase permits the PUBLIC query before its session and CSRF checks. This means the described path does not require an account or prior access to the builder. A published app can expose its app and query identifiers through normal use, according to the advisory.

Which Published Apps Are in Scope?

Four conditions define the advisory’s demonstrated case. The app must use a MongoDB datasource, publish a query with PUBLIC execution permission, and place a request parameter in a JSON key. The caller must also reach query execution when recaptcha is disabled or satisfied.

Those conditions are narrower than “every Budibase installation.” A private query without PUBLIC execution does not follow the authorization path described here. A MongoDB query whose JSON keys are entirely fixed does not meet the documented dynamic-key condition. Teams should inspect actual published query definitions before declaring an app affected.

The CVE Program lists Budibase Server 3.39.18 up to, but excluding, 4.0.0 as affected. The GitHub advisory identifies 3.39.18 through 3.44.0 in its confirmed testing and labels package versions below 4.0.0 affected. It also says the tested development branch was affected on September 2, 2026. These are different statements about range and direct validation, so record the running version for every deployment.

Check Documented condition Operator record
Build 3.39.18 to before 4.0.0 Running server version on each instance
Datasource MongoDB Datasource connected to each published app
Permission PUBLIC query execution Effective role on each query
Template Request parameter used as a JSON key Stored query definition and change owner

This table is a review aid based on the advisory, not a remote exposure test. Check staging, recovery, and older published apps as well as the main production deployment. A version inventory alone cannot show whether a PUBLIC dynamic-key query exists.

For estate-wide prioritization, vulnerability intelligence can sit alongside the query inventory and deployment records. The advisory’s configuration conditions still require local review. Preserve the link between each app, query, datasource, and running server build.

Why Can One Empty Filter Have Different Effects?

MongoDB applies an empty filter to the collection selected by the query. In the advisory’s read case, the operation can return every document in that collection. That is a confidentiality problem when the builder expected its predicate to limit rows. The result can include fields the builder did not intend to expose through that PUBLIC query.

The write cases depend on which operations a builder published. A PUBLIC bulk update with an emptied filter can modify every document in its selected collection. A PUBLIC bulk delete can remove every document there. These outcomes require the corresponding write query; a read-only PUBLIC query does not itself grant a delete operation.

The advisory explicitly limits the blast radius to the collection chosen by the builder. It does not establish that an attacker can select an arbitrary MongoDB collection. This distinction should appear in incident reports and internal tickets. Otherwise, responders may confuse full-collection impact within one published query with unrestricted database access.

The CVE Program’s CNA rates this flaw Critical: 10.0 under CVSS 3.1 and 9.9 under CVSS 4.0. These scores describe potential severity under the record’s assumptions. They do not measure how many Budibase apps have the required query configuration or whether any organization has been compromised.

Brandefense Blackhole counted 23 dark-chat posts matching the broad term Budibase from August 29 through November 27, 2026. The measured unit is matching posts, not distinct incidents or posts about this CVE. This broad count cannot establish targeting or exploitation of PUBLIC MongoDB queries.

What Should an Operator Check Before Changing a Query?

First, inventory published Budibase apps on affected builds and identify their MongoDB datasources. Export the relevant query configuration through an authorized administrative process. Record who owns each query and whether PUBLIC execution remains necessary. This creates a reviewable baseline before permissions or templates change.

Next, locate queries whose JSON keys can be supplied through request parameters. Give priority to PUBLIC bulk update and delete operations because an empty filter would widen their write scope. Review PUBLIC read queries for collections containing sensitive fields. The advisory’s demonstrated behavior is specific to object-backed, structured JSON forms.

Then compare authorized query activity with application and database records that your deployment actually retains. We recommend looking for unexpected full-collection result sizes, large bulk-write counts, or unexplained collection changes. Treat these as investigation leads, not proof of this flaw. Normal administrative jobs can also touch many records.

Preserve the version, query definition, effective permission, and relevant access and MongoDB records before cleanup. A change in a collection is useful evidence only when responders can place it beside authorized work. If a suspicious read or bulk operation appears, determine which published query and collection it used.

Budibase operator review
  • InventoryRecord running Budibase builds and the published apps connected to MongoDB.
  • InspectIdentify PUBLIC queries with request-controlled JSON keys and their selected collections.
  • PrioritizeReview PUBLIC bulk writes and sensitive read collections first.
  • PreserveKeep query definitions and available application and database records before changes.
  • UpdateApply 4.0.0, restart, and verify the running server build on every instance.

The checklist turns the advisory’s preconditions into local questions. It does not ask teams to reproduce the exploit against live data. A controlled configuration review and version check provide a safer path to decide whether a deployment is exposed.

What Does the 4.0.0 Fix Change for Response?

Budibase’s advisory and the CVE record both identify 4.0.0 as the patched version. Apply the update through your normal patch management process. Confirm the version actually running after restart, including replicas and restored environments. A changed image tag or deployment file alone is insufficient evidence that every server restarted.

Before the update completes, reduce unnecessary PUBLIC query exposure. We recommend removing PUBLIC execution from affected queries when the app can tolerate that change. A temporary access restriction may reduce reachability, but teams must verify how the app behaves after it. These are operational mitigations derived from the documented prerequisites.

After updating, recheck the same published query inventory. Verify that intended predicates remain part of the final query behavior through authorized, non-destructive testing. Review bulk-write permissions separately because the damage from a broad write differs from a broad read. Keep an owner for each exception that cannot be retired immediately.

Do not assume the update repairs data already read, changed, or deleted. If local records show unusual activity, assess the affected collection and use your incident process. Restore or reconcile data from a known-good source only after preserving evidence and understanding legitimate recent writes.

How Is This Different From Other Budibase Flaws?

The earlier Budibase bootstrap bypass review concerns first-run tenant scoping in self-hosted single-tenant deployments. It involves unexpected tenant database and administrator-record creation. The PUBLIC MongoDB query issue instead depends on a published query’s permission and dynamic JSON key.

A separate Budibase SSO account-linking profile describes an authentication issue involving builder accounts. It is not the same route into MongoDB query execution. Record each flaw against its own prerequisites, affected build, and investigation evidence.

The advisory also distinguishes this issue from CVE-2026-54350, an earlier query-template injection involving parameter values. This later path arose after support for dynamic parameter keys was added. An old fix for value handling therefore does not settle whether a deployment needs the 4.0.0 update.

For this case, the decisive local evidence is a running version and a PUBLIC MongoDB query with a request-controlled JSON key. Confirm those facts, update to 4.0.0, and review the selected collections for unexpected activity. Keep claims about actual access tied to local records, not to the advisory’s potential impact.

Frequently Asked Questions

What evidence should operators record before changing a PUBLIC query?

Record the running build, published app, query definition, effective permission, selected MongoDB collection, and available application and database activity records.

Does a PUBLIC read query permit collection deletion?

The advisory ties deletion to a separate PUBLIC bulk-delete query. A read query can expose documents in its selected collection when the filter is erased.

How should a team verify remediation?

Confirm Budibase Server 4.0.0 is running on each instance, then review PUBLIC query configurations and validate intended filters with authorized, non-destructive testing.

Sources

  1. Budibase GitHub security advisory, published November 10, 2026
  2. CVE Program record CVE-2026-137498, published November 26, 2026
Share this articleLinkedInXEmail
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →