On this page (7 sections)

CVE-2026-137498 is a critical flaw in Budibase Server. According to the NVD record, versions from 3.39.18 before 4.0.0 contain a prototype pollution vulnerability that lets unauthenticated attackers erase the filter of a MongoDB query and then read, update, or delete every document in the collection.

If you run Budibase Server and use MongoDB, especially with queries set to PUBLIC, treat this as urgent. The public information so far is limited to the CVE description and two linked advisories, so this article sticks to what is confirmed and focuses on how to check and respond.

What happened

The flaw was published on 2026-11-26. The NVD description says an attacker can supply __proto__ as a dynamic JSON key in PUBLIC queries. Doing so reduces the MongoDB query filter to an empty object, {}. A filter is what normally restricts a query to specific records, so an empty one matches everything in the collection.

The description states that this takes a single request to the query execution endpoint and requires no authentication. The result, per the description, is that read, update, or delete operations can apply to every document in the collection.

Technical details in plain terms

Prototype pollution is a JavaScript weakness class. Objects inherit properties from a shared prototype, and special keys such as __proto__ can, when handled unsafely, reach that inherited structure instead of being treated as ordinary data. When input containing such keys is processed without protection, the behavior of the application can change.

In this case the CVE description says the special key is supplied as a dynamic JSON key in PUBLIC queries, and the effect is that the MongoDB filter collapses to {}. The weakness is classified as CWE-943, which the CVE record assigns to this issue. The research does not describe the root cause in more detail than this.

The research contains only the NVD description and two reference links: a GitHub advisory and a VulnCheck advisory. Only one independent publisher covers the story so far. Details such as the exact patched build, precise preconditions and any vendor workaround should be confirmed in those advisories.

Who is affected

Based on the CVE wording, you are potentially exposed if both of these apply:

  • You run Budibase Server at a version from 3.39.18 up to, but not including, 4.0.0.
  • Your apps have PUBLIC queries against MongoDB that take dynamic values.

The record does not say how PUBLIC queries are defined in Budibase, whether other query types or datasources are affected, or whether instances without PUBLIC MongoDB queries are safe. Do not assume they are; check the linked advisories for the exact scope. Reachability also matters: an instance that the internet can reach is a bigger concern than one limited to a private network, although the record does not exempt either.

How to check your exposure

Start with the version. The Budibase admin interface usually shows it in its settings area. For Docker-based installs you can list running containers and image tags, which is a read-only check. Run this on the Docker host and look at the tag of your Budibase images:

List running containers and image tags on the Docker host (read-only)Shell
docker ps --format '{{.Names}}  {{.Image}}'

Next, review your apps in the Budibase builder. Note every query that uses MongoDB and whether it is set to PUBLIC, since those are the queries the CVE description names. Then search your reverse proxy or web server logs for the literal string __proto__. This read-only command assumes an nginx access log at the path shown; adjust it to your setup and look for any matching lines:

Search a reverse proxy access log for the string __proto__ (adjust the log path)Shell
grep -F '__proto__' /var/log/nginx/access.log
Tip. Access logs often do not record POST bodies, so an empty result does not prove you were not targeted. Compare record counts and recent modification times in your MongoDB collections against what you expect.

What to do now

  1. Identify every Budibase Server instance you run, including test and staging, and record its version.
  2. Upgrade any instance in the 3.39.18 to before 4.0.0 range to 4.0.0 or later, following the guidance in the linked advisories.
  3. If you cannot upgrade immediately, restrict network access to the instance (VPN, IP allow list or firewall rule) as a stopgap.
  4. Review MongoDB queries set to PUBLIC and, where the app does not need anonymous access, change them to require authentication.
  5. Take a backup of the affected MongoDB databases before patching so you can recover from unwanted changes.
  6. Check collections for missing, altered or unexpectedly bulk-modified documents, and review MongoDB logs if auditing is enabled.
  7. Give the Budibase datasource a MongoDB account with only the privileges the app needs.
  8. If you find signs of unauthorized access, rotate datasource credentials and follow an incident process.
Caution. Upgrading a production Budibase instance restarts services and can briefly interrupt your apps. Take a backup and schedule the change before you start.

The research describes no workaround other than moving out of the affected range. Network restriction, tighter query access and least-privilege database accounts are general risk reducers, not confirmed vendor mitigations. Treat them as stopgaps until you reach 4.0.0 or later.

Detection and monitoring afterwards

After patching, keep looking for abuse that may have happened before the fix. Watch for sudden drops in document counts, mass updates sharing the same timestamp, and requests to the query execution endpoint from addresses that have never used your apps. Enable MongoDB auditing or profiling if your edition supports it, and alert on large delete or update operations.

A web application firewall can add a layer of filtering in front of self-hosted tools, such as Webforta Shield, but it is not a substitute for upgrading. Our guide on what a WAF is explains the idea, and the security scanner can review the externally visible parts of sites you own. If you suspect data was altered or stolen, follow website hacked: what to do.

What is still unknown

  • No source in the research confirms exploitation in the wild, and the CVE record shows no CISA Known Exploited Vulnerabilities listing.
  • The research does not state the exact patched release beyond the affected range ending before 4.0.0.
  • The CVSS score of 9.9 comes from the CVE record; the vector string was not provided, so attack complexity and scope details are not confirmed here.
  • The precise preconditions, such as how PUBLIC queries are configured, are not described beyond the CVE wording.
  • Coverage is currently limited to the NVD entry and the two linked advisories.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-137498: Budibase Server from 3.39.18 before 4.0.0 contains a prototype pollution vulnerability that allows unauthenticated attackers to erase MongoDB query filters by…nvd.nist.gov ·
  • Budibase
  • CVE-2026-137498
  • prototype pollution
  • MongoDB
  • CWE-943