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
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.
- 01Public query
An unauthenticated attacker sends a request to the query execution endpoint.
- 02Magic key supplied
The request carries __proto__ as a dynamic JSON key.
- 03Filter erased
The MongoDB query filter is reduced to an empty filter.
- 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
- Inventory Budibase Server deployments and confirm the version.
- Upgrade to 4.0.0 or later.
- Do not expose Budibase query endpoints to untrusted networks while remediation is underway.
- Review query execution logs and database audit trails for unexpected bulk reads, updates, or deletions.
- 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.