Act nowDisclosed

Advisory · CVE-2026-137498

Unauthenticated MongoDB filter erasure in Budibase via prototype pollution

An unauthenticated attacker can supply __proto__ as a JSON key in public queries to erase MongoDB filters and read, update, or delete every document in a collection. Fixed in 4.0.0.

Vendor
Budibase
Product
Budibase
Identifier / CWE
CVE-2026-137498
CWE-943
Action timing
Immediate
ELI5

Explain it like I’m five

Budibase lets strangers ask questions about its database, and one magic word erases the question's filter entirely, so the database answers with everything it has.

SIMPLIFIED_ATTACK_PATH04 STEPS
  1. 01Public query

    An unauthenticated attacker sends a request to the query execution endpoint.

  2. 02Magic key supplied

    The request carries __proto__ as a dynamic JSON key.

  3. 03Filter erased

    The MongoDB query filter is reduced to an empty filter.

  4. 04Full collection exposed

    The attacker can read, update, or delete every document in the collection.

What happened

Budibase Server from 3.39.18 before 4.0.0 contains a prototype pollution vulnerability. An unauthenticated attacker can erase MongoDB query filters by supplying proto as a dynamic JSON key in public queries. A single request to the query execution endpoint reduces the filter to an empty filter, letting the attacker read, update, or delete every document in the collection.

NVD rates the flaw critical at CVSS 3.1 10.0 and CVSS 4.0 9.9, the maximum severity. Versions 3.39.18 through 3.x before 4.0.0 are affected; 4.0.0 fixes it.

What to do

  1. Inventory Budibase Server deployments and confirm the version.
  2. Upgrade to 4.0.0 or later.
  3. Do not expose Budibase query endpoints to untrusted networks while remediation is underway.
  4. Review query execution logs and database audit trails for unexpected bulk reads, updates, or deletions.
  5. Verify the deployed version after the update.

Management note

This is the worst combination in the batch: unauthenticated, maximum severity, and full database access in a single request. Any internet-facing Budibase Server in the affected range should be treated as exposed until patched, and the data review is as important as the upgrade.