Security

One key empties the filter: Budibase MongoDB query filter erasure via __proto__ (CVE-2026-137498)

Artem Safonov
Artem Safonov , Threat Analyst
One key empties the filter: Budibase MongoDB query filter erasure via __proto__ (CVE-2026-137498)
Cover © Anonhaven

One parameter value, __proto__, turns the filter of a public MongoDB query in Budibase into an empty object, and the database then applies the operation to every document in the collection. The flaw is tracked as CVE-2026-137498. Budibase's advisory scores it 10.0 under CVSS 3.1 and VulnCheck, which assigned the CVE number, 9.9 under CVSS 4.0. Depending on what the query does, an anonymous caller reads, rewrites or deletes the whole collection with a single request.

The attack needs no account, session or CSRF token, but it does need a specific setup. An app builder must have connected a MongoDB datasource, published a query with the PUBLIC role, and used a request parameter as a JSON key in that query. Neither the Budibase advisory GHSA-x4w8-596q-fmh7, published on November 10, 2026 with the full report of researcher GabrielGomesAL, nor the CVE record that VulnCheck published on November 26 mentions exploitation.

Budibase names 4.0.0 as the patched version, and the source tree disagrees with the advisory. Tags v4.0.0, v4.0.1 and v4.1.0 carry the same assignment the researcher reported, and the commit that replaces it was written on November 23, 13 days after the advisory. As of November 26 that commit ships only in prerelease cloud builds.

  • Affected: Budibase Server from 3.39.18. The advisory puts the upper bound below 4.0.0, but the code of 4.0.0, 4.0.1 and 4.1.0 still contains the vulnerable assignment.
  • Fixed in: commit d04b900 of November 23, 2026, present in prerelease builds from v4.2.0-cloud.3 and in master. No regular release contained it on November 26.
  • Attack requires: a published app with a MongoDB query that has the PUBLIC role and uses a request parameter as a JSON key, plus the app ID and query ID, which the app exposes in its own requests. No account is needed.
  • Exploitation: none reported in the advisory or the CVE record. The researcher verified the flaw at source level only.
  • Action: find PUBLIC MongoDB queries with a binding in key position and take the PUBLIC role off them now. By the source code, an upgrade to 4.1.0 does not remove the flaw.

No fixed regular release yet

Budibase 4.1.0, the newest regular release on November 26, 2026, was tagged before the fix commit existed. Self-hosted installations on any version from 3.39.18 to 4.1.0 should apply the mitigations in the last section instead of waiting for an update to close the hole.

Where a PUBLIC query skips the session check

Budibase is a low-code platform for internal tools. Builders connect datasources, write queries against them and publish apps that call those queries over HTTP. Its GitHub repository had about 28,000 stars on November 26, 2026, and the budibase/budibase image had passed 2.3 million downloads on Docker Hub. The server code is public, so every step of the attack can be shown from the repository, and all fragments of vulnerable code in this analysis come from the tag v4.1.0.

A published app runs a stored query through POST /api/v2/queries/:queryId. Its route belongs to a group guarded by the authorized middleware with the QUERY permission at WRITE level, followed by the reCAPTCHA middleware. That group also registers the deprecated POST /api/queries/:queryId, and both handlers, executeV2 and executeV1, call one shared execute function, although the advisory names only the v2 endpoint.

For most resources authorized demands a session, but a resource whose role is PUBLIC takes an early exit:

    if (
      !isInternalTable &&
      (resourceRoles.includes(roles.BUILTIN_ROLE_IDS.PUBLIC) ||
        (otherLevelRoles &&
          otherLevelRoles.includes(roles.BUILTIN_ROLE_IDS.PUBLIC)))
    ) {
      return next()
    }

    // check authenticated
    if (!ctx.isAuthenticated) {
      return ctx.throw(401, "Session not authenticated")
    }

packages/server/src/middleware/authorized.ts, lines 145 to 157, tag v4.1.0 (newest regular release, before the fix). The decisive line is 151.

The return next() for a PUBLIC resource runs before the ctx.isAuthenticated check, and the CSRF check sits at the very end of the same function, so it never runs either. This behaviour is intended, because a public form has to work for visitors who never log in. It also means that the stored filter of the query is the only thing standing between an anonymous visitor and the collection.

Inside execute the controller takes parameters straight from the request body and passes them to enrichParameters, whose only inspection of caller input is this function:

function validateQueryInputs(parameters: QueryEventParameters) {
  for (const [key, value] of Object.entries(parameters)) {
    if (containsHandlebarsBinding(value)) {
      throw new Error(
        `Parameter '${key}' input contains a handlebars binding - this is not allowed.`
      )
    }
  }
}

packages/server/src/api/controllers/query/index.ts, lines 91 to 99, tag v4.1.0 (before the fix).

validateQueryInputs rejects a parameter that contains a Handlebars block, which stops a caller from smuggling template syntax into a stored query. The literal string __proto__ is not a Handlebars block, so it passes and travels to the query runner thread together with the stored query fields.

How two template passes lose the __proto__ key

Since version 3.39.18 a builder may place a binding in the key position of a MongoDB query, for example {"{{ key }}":"fixed"}, so that the caller chooses which field to match. The runner resolves such a template through sdk.queries.enrichContext, and the JSON goes through two passes. First comes processJsonStringSync in the string-templates package, which parses the template and rebuilds every object like this:

  if (value && typeof value === "object") {
    return Object.fromEntries(
      Object.entries(value).map(([key, child]) => [
        processJsonTemplateString(key, context, opts),
        processJsonTemplateValue(child, bindings, context, opts),
      ])
    )
  }

packages/string-templates/src/index.ts, lines 392 to 399, tag v4.1.0 (first pass, not changed by the fix).

Object.fromEntries defines each key as an own data property, whatever its name. For the parameter value __proto__ the result is an object with one own key called __proto__ and the value "fixed", which is exactly the filter the builder asked for. The advisory calls this step safe, and the code agrees.

The output of the first pass goes to enrichJsonValue in the server package, which walks the tree again to resolve bindings inside nested keys and values. This second pass builds a new object by plain assignment:

  const enrichedQuery: Record<string, JSONValue> = {}
  for (const key of Object.keys(value)) {
    const fieldValue = value[key]
    if (
      fieldValue === undefined ||
      (fieldValue === null && !options.preserveNullValues)
    ) {
      continue
    }
    const enrichedKey = processTemplateString(key, parameters, options)
    enrichedQuery[enrichedKey] = enrichJsonValue(
      fieldValue,
      parameters,
      options
    )
  }
  return enrichedQuery

packages/server/src/sdk/workspace/queries/queries.ts, lines 80 to 96, tag v4.1.0 (before the fix). The decisive line is 90.

enrichedQuery is an ordinary object literal, so it inherits the __proto__ accessor from Object.prototype. When enrichedKey equals __proto__, the assignment does not create a property: it calls the inherited setter, and that setter ignores any value that is neither an object nor null. The string "fixed" is discarded, the loop ends, and the function returns {}. Its sibling enrichContextObject, which handles the top-level query fields, makes the same assignment in two more places.

To confirm the semantics outside Budibase, we ran both ways of building the object on Node.js 23.7.0:

const firstPass = Object.fromEntries([["__proto__", "fixed"]])
console.log("first pass own keys:", JSON.stringify(Object.keys(firstPass)))

const assigned = {}
for (const key of Object.keys(firstPass)) assigned[key] = firstPass[key]
console.log("plain assignment:", JSON.stringify(assigned))

const defined = {}
for (const key of Object.keys(firstPass)) {
  Object.defineProperty(defined, key, {
    value: firstPass[key],
    enumerable: true,
    writable: true,
    configurable: true,
  })
}
console.log("Object.defineProperty:", JSON.stringify(defined))
console.log("prototype of the assigned object unchanged:", Object.getPrototypeOf(assigned) === Object.prototype)
console.log("enumerable keys on Object.prototype:", Object.keys(Object.prototype).length)

const others = {}
others["constructor"] = "a"
others["prototype"] = "b"
console.log("constructor and prototype:", JSON.stringify(others))

Our check script, not Budibase code: it builds the same object with Object.fromEntries, copies it by assignment and by Object.defineProperty, and uses no network or database.

The script printed:

first pass own keys: ["__proto__"]
plain assignment: {}
Object.defineProperty: {"__proto__":"fixed"}
prototype of the assigned object unchanged: true
enumerable keys on Object.prototype: 0
constructor and prototype: {"constructor":"a","prototype":"b"}

Output of the check script on Node.js 23.7.0.

Plain assignment loses the key and Object.defineProperty keeps it. The new object keeps Object.prototype as its prototype and Object.prototype gains no keys, so nothing leaks into other objects of the process. Of the three names that are usually blocked together only __proto__ behaves this way: constructor and prototype become normal own properties under assignment.

That result matters for the label on the bug. The CVE record describes a prototype pollution vulnerability, and the advisory lists CWE-1321 (improperly controlled modification of object prototype attributes) next to CWE-943. No prototype is polluted here: a key is lost on the way to the database. CWE-943, improper neutralization of special elements in data query logic and the only weakness in the CVE record, describes the effect more closely.

From an empty filter to the whole collection

The runner hands the enriched fields to the datasource integration by calling integration[queryVerb], and the MongoDB integration does not inspect the filter it receives. Its read method calls collection.find(json) whenever json is truthy, which an empty object is. Its update method passes json.filter to collection.updateMany, and the delete method shows how an empty object turns into a filter that matches everything:

      if (!json.options) {
        json = {
          filter: json,
          options: {},
        }
      }

      switch (query.extra.actionType) {
        case "deleteOne": {
          return await collection.deleteOne(json.filter, json.options)
        }
        case "deleteMany": {
          return await collection.deleteMany(json.filter, json.options)
        }

packages/server/src/integrations/mongodb.ts, lines 631 to 644, tag v4.1.0 (not changed by the fix).

A delete template of {"{{ key }}":"fixed"} arrives in this method as {}. It has no options property, so it is wrapped as a filter, and deleteMany receives an empty one. For updateMany the advisory uses a structured template whose filter member holds the dynamic key, and the nested object collapses in the same way.

Put together, the attack described in the advisory runs as follows:

  1. The attacker opens a published Budibase app and reads the app ID and the query ID from the requests the app itself sends, where the advisory notes both are visible in normal traffic.
  2. One POST goes to the query execution endpoint, with the app ID in the x-budibase-app-id header and the parameter that feeds the dynamic key set to __proto__. No cookie or token is attached.
  3. authorized finds the PUBLIC role on the query and calls next() before the session and CSRF checks. reCAPTCHA stops the request only if it is enabled for query execution and the caller cannot satisfy it.
  4. validateQueryInputs finds no Handlebars block in the parameter and accepts it.
  5. The first template pass builds the filter with an own key named __proto__.
  6. During the second pass that key is copied by assignment, the inherited setter swallows the value, and the filter becomes {}.
  7. MongoDB receives find, updateMany or deleteMany with the empty filter, and the response carries every document of the collection, or the count of documents changed or removed.

No live service was tested by the researcher. The report reproduces the two passes in a network-free Node.js harness with an in-memory fake collection, and its output shows two rows leaked, two updated and two deleted:

{
  "unauthenticatedAllowedForPublicQuery": true,
  "suppliedDynamicKey": "__proto__",
  "firstPassOwnKeys": ["__proto__"],
  "finalFindFilter": {},
  "leakedRows": 2,
  "finalUpdateFilter": {},
  "updatedRows": 2,
  "finalDeleteFilter": {},
  "deletedRows": 2
}

Result of the researcher's local harness, quoted from the report by GabrielGomesAL in advisory GHSA-x4w8-596q-fmh7. It is output of a simulation, not of a Budibase instance.

This is a source-level semantic proof. No Budibase Cloud, production system, or third-party data was tested.

— GabrielGomesAL, reporter, Budibase advisory GHSA-x4w8-596q-fmh7

The advisory is careful about the limits of the flaw. Damage stops at the collection the builder selected for the query, and the report does not claim that a caller can pick another one. The code confirms the other two limits: reading requires a PUBLIC find query, while modification and deletion each require a separate PUBLIC updateMany or deleteMany query with a dynamic key. The single-JSON and object-backed template forms are confirmed, and the researcher makes no claim about the legacy multi-object string format "{} {}".

Budibase's own test suite backs both halves of the chain, the report adds. One group of tests in mongodb.spec.ts covers a parameterised MongoDB key as a supported feature, and another confirms that structured empty filters operate on every document for deleteMany and updateMany. The line numbers quoted in the advisory refer to master at commit a7575af, which the researcher checked on September 2, 2026, so they differ from the ones under the code blocks here.

Where the bug came from: dynamic keys in 3.39.18

CVE-2026-137498 is the second anonymous MongoDB flaw of 2026 in the queries of published Budibase apps. On June 11 the project published advisory GHSA-8qv3-p479-cj62 for CVE-2026-54350, also scored 10.0: NoSQL operator injection through parameter values that broke out of their quotes, affecting versions before 3.39.12, the release that the CVE record and the advisory's patched field name as fixed. The range field of the same advisory reads <= 3.39.12 and so contradicts its own patched field. Five days later, on June 16, pull request #18987 by melohagan, "Fix MongoDB binding keys in queries", was opened and merged within two hours, and it shipped the same day in 3.39.18. Its release note sums the change up as "Fixes MongoDB queries so bindings can be used as dynamic JSON keys", and it addressed issue #18986.

Before that change the enrichment loop copied keys exactly as the builder had stored them, with enrichedQuery[key], and only values went through the template engine. Caller input never reached a property name. The pull request put processTemplateString(key, …) in front of the same assignment, and an assignment that was harmless while keys came from the builder became the flaw once a caller could choose them. In the source, tag 3.39.17 has no templated keys and tag 3.39.18 has all three assignment sites, which matches the lower bound in the CVE record. The advisory gives its own range as <4.0.0 without a lower bound.

The report draws the same line between the two flaws. CVE-2026-54350 concerned values and the new issue concerns keys, it relies only on the literal __proto__ and the second-pass assignment, and the earlier quote-breaking payload plays no part in it. The researcher found no public advisory, issue, pull request or fix for this path before reporting it and notes that a private duplicate cannot be ruled out.

What the fix commit changes

Commit d04b900, titled "Fix MongoDB query filter loss for prototype keys" and written by Budibase developer José Vte. Calderón, adds one helper to queries.ts:

+const setJsonKey = (
+  target: Record<string, JSONValue>,
+  key: string,
+  value: JSONValue
+) => {
+  Object.defineProperty(target, key, {
+    value,
+    enumerable: true,
+    writable: true,
+    configurable: true,
+  })
+}

packages/server/src/sdk/workspace/queries/queries.ts, lines 50 to 61 after the change, commit d04b900 (the fix), authored by José Vte. Calderón (GitHub login jvcalderon, committer address on the budibase.com domain).

Object.defineProperty never consults the prototype chain. It defines an own property named by key on target, and the three flags make that property behave like one created by ordinary assignment. Each of the three assignments is then routed through the helper, which in enrichJsonValue looks like this:

     const enrichedKey = processTemplateString(key, parameters, options)
-    enrichedQuery[enrichedKey] = enrichJsonValue(
-      fieldValue,
-      parameters,
-      options,
-      [...path, enrichedKey]
+    setJsonKey(
+      enrichedQuery,
+      enrichedKey,
+      enrichJsonValue(fieldValue, parameters, options, [...path, enrichedKey])
     )

packages/server/src/sdk/workspace/queries/queries.ts, lines 113 to 118 after the change, commit d04b900 (the fix). The removed lines are the assignment shown earlier, with a path argument that came with November 16 commits not included in v4.1.0.

The two sites in enrichContextObject change in the same way. Working code accounts for 28 added and 13 removed lines in one file, and the remaining 36 added lines are three tests in two spec files. Two of them call enrichContext directly and expect the __proto__ key to survive, once inside a JSON template and once as a top-level query field. The third runs a MongoDB find query through the API with the parameter __proto__ and expects an empty result.

We assess with high confidence that the commit closes the filter erasure on both code paths. It implements the second of the researcher's four recommendations, it covers every assignment in the file that takes a templated key, and in our Node.js run the defineProperty form kept the key that assignment lost. After the fix a caller who sends __proto__ gets a filter on a field literally named __proto__, and the new API test expects that filter to match nothing.

The other three recommendations are not in the commit. There is no list of rejected key names, although the report asked for at least __proto__, prototype and constructor to be refused after key enrichment. Nothing validates the final MongoDB filter once enrichment is done, and no regression test covers updateMany or deleteMany. The missing filter validation matters beyond this CVE: the integration still executes whatever filter enrichment hands it, so any later defect that empties a filter would have the same reach.

No pull request was opened for the commit itself. GitHub associates it only with #20162, "Merge Cloud changes back to master", which the project's release automation bot opened and which was merged on November 24.

What the 4.x release tags contain

The advisory, the CVE record and VulnCheck's page all name 4.0.0 as the first fixed version. Budibase published v4.0.0 on November 10 and the advisory half an hour later, while the fix commit is dated November 23. A release cannot contain a commit written 13 days after it, so the only way for 4.0.0 to be safe would be a different protection somewhere else along the path.

None shows up in the tags. At v4.0.0, v4.0.1 and v4.1.0 the file queries.ts is byte-for-byte the same, with all three assignment sites and no defineProperty call. GitHub's comparison places all three tags behind d04b900, which means none of them includes it. Between the researcher's September 2 check and 4.0.0 the file received two commits, fd16b67 of September 7 (escaping of JSON template connector fields) and c6b2128 of October 26 (keeping explicit null values in JSON query fields), and neither touches key handling.

No other layer stops the request in 4.x either. At v4.1.0 the route file, the authorized middleware, the query controller, the runner thread, the MongoDB integration and the entry point of string-templates are identical to their versions in the parent of the fix commit, which is the code Budibase itself patched for filter loss. queries.ts differs from that parent only by unrelated handling of aggregate pipeline steps, which added a path argument.

We assess with high confidence that Budibase 4.0.0, 4.0.1 and 4.1.0 are vulnerable in the same way as 3.39.18 through 3.44.0, the range the researcher confirmed. The assessment rests on the source comparison above and on the semantics check, not on a request sent to a running 4.x instance. Budibase has not explained why the advisory names 4.0.0.

The first build that includes the fix is the prerelease v4.2.0-cloud.3 of November 24: the comparison puts v4.2.0-cloud.2 one commit behind d04b900 and v4.2.0-cloud.3 one ahead. master has carried it since the merge of #20162 on the same day. On Docker Hub the latest tag of budibase/budibase was last updated on November 23 at 08:16 UTC, about 20 minutes before the fix commit was authored, while the cloud tag pointed at v4.2.0-cloud.8 on November 26. The advisory does not say which build Budibase Cloud runs or when the hosted service received the fix.

Affected versions and fixed builds

Ranges stated by Budibase and VulnCheck are combined below with the state of the source at each tag. Regular releases are tagged vX.Y.Z, and cloud builds carry a -cloud.N suffix and are marked as prereleases on GitHub.

Version or build Status Basis
3.39.17 and older Not affected by this flaw: keys are not templated. Versions before 3.39.12 are affected by CVE-2026-54350 Source at tag 3.39.17, CVE-2026-54350 record, advisory GHSA-8qv3-p479-cj62
3.39.18 to 3.44.0 Vulnerable, confirmed by the researcher Advisory GHSA-x4w8-596q-fmh7, source at tag 3.39.18
Later 3.x releases Vulnerable according to the advisory range <4.0.0 Advisory, CVE record
4.0.0, 4.0.1, 4.1.0 Listed as patched from 4.0.0, but the source keeps the vulnerable assignment Source at tags v4.0.0, v4.0.1, v4.1.0, GitHub comparison with d04b900
v4.2.0-cloud.3 to v4.2.0-cloud.8 Fix included, prerelease builds GitHub comparison, source at tag v4.2.0-cloud.8
master from November 24, 2026 Fix included GitHub comparison, pull request #20162

Two scores exist for the flaw. Budibase's advisory gives 10.0 with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N, and the CVE record repeats it next to VulnCheck's own 9.9 under CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N. The researcher offered two readings and left the choice to Budibase and the CNA: a conservative 9.8 with unchanged scope and high availability impact (S:U/C:H/I:H/A:H), or 10.0 with changed scope, the interpretation Budibase had already applied to the backing datasource in CVE-2026-54350. Budibase took the second, which is why the published vector shows no availability impact even though deleteMany can empty a collection.

On November 26 the advisory page still showed no CVE ID, although the CVE record links to it. That day's batch contains a second Budibase record with the same "before 4.0.0" boundary, CVE-2026-137499, scored 9.3: takeover of passwordless Builder accounts through OIDC logins with email_verified=false (advisory GHSA-jm85-crv2-88px), affecting versions from 3.41.0 before 4.0.0.

An installation built from source can be checked in one file. In packages/server/src/sdk/workspace/queries/queries.ts a fixed tree defines setJsonKey with Object.defineProperty, while a vulnerable one still has the line enrichedQuery[enrichedKey] = enrichJsonValue( inside enrichJsonValue.

Reference numbers

Item Value Source
GitHub repository Budibase/budibase 28,452 stars, 2,240 forks, 216 watchers GitHub API, November 26, 2026, about 17:00 UTC
Docker Hub image budibase/budibase 2,353,863 pulls, 35 stars Docker Hub, November 26, 2026
Fix commit d04b900 3 files, +64/−13: queries.ts +28/−13, queries.spec.ts +18, mongodb.spec.ts +18 GitHub commit
Pull request #18987 4 files, +205/−23, merge commit ee39be0. Its description lists regression tests for SDK context enrichment and for MongoDB find and insertMany execution GitHub pull request
master on November 26 178 commits ahead of d04b900 at commit b75dcf2 GitHub comparison

Timeline

All times are UTC and come from GitHub release, commit and pull request metadata, the advisory, the CVE record and Docker Hub.

Date and time (UTC) Event
2026-06-11 09:08:57 Advisory GHSA-8qv3-p479-cj62 for CVE-2026-54350 published (injection through parameter values, versions before 3.39.12)
2026-06-16 08:10:05 Release 3.39.17, the last one without templated keys
2026-06-16 10:07:12 Pull request #18987 opened
2026-06-16 11:54:18 Pull request #18987 merged as ee39be0
2026-06-16 13:59:38 Release 3.39.18, the first vulnerable one
2026-09-02 The researcher checks master at a7575af and confirms 3.39.18 through 3.44.0 as affected
2026-11-10 16:40:12 Release v4.0.0
2026-11-10 17:10:46 Advisory GHSA-x4w8-596q-fmh7 published by mjashanks of Budibase, naming 4.0.0 as patched
2026-11-16 09:34:13 Release v4.0.1
2026-11-23 08:16:47 Docker Hub tag latest last updated
2026-11-23 08:20:29 Release v4.1.0, the newest regular release on November 26
2026-11-23 08:37:17 Fix commit d04b900 authored (committed at 20:00:32)
2026-11-23 09:51:41 and 11:19:48 Prereleases v4.2.0-cloud.1 and v4.2.0-cloud.2, both without the fix
2026-11-24 10:42:46 Pull request #20162 merges the cloud branch, with the fix, into master
2026-11-24 11:01:39 Prerelease v4.2.0-cloud.3, the first build with the fix
2026-11-26 16:01:05 VulnCheck publishes CVE-2026-137498

What to do

Budibase's advisory offers one remedy, the patched version, and publishes neither workarounds nor indicators of compromise. The measures below follow from the preconditions of the attack and from the code, and they are ours, not the vendor's.

  • Do not treat 4.x as fixed. Check the source of the build you run for setJsonKey, because the tags v4.0.0, v4.0.1 and v4.1.0 all predate the fix commit and contain the vulnerable assignment.
  • Inventory the exposed queries. List every MongoDB query whose execution role is PUBLIC and whose JSON has a binding in key position, such as {"{{ key }}": …}, because these are the only queries an anonymous caller can reach with this flaw.
  • Remove the PUBLIC role or the dynamic key. Require a logged-in role for those queries, or replace the dynamic key with separate queries that have fixed field names, because either change takes away one of the two conditions the attack cannot do without.
  • Treat write queries first. Start with PUBLIC updateMany and deleteMany queries, because a find query leaks the collection while these two rewrite or erase it in one request.
  • Keep reCAPTCHA on, but do not rely on it. Enable it for query execution because the fifth precondition in the advisory is that reCAPTCHA is disabled or satisfied by the caller, so it raises the cost of a request without closing the path.
  • Look for the traces, and do not read an empty result as an all-clear. In the proxy access log, search for POST requests to /api/v2/queries/<id> and /api/queries/<id> with the IDs of the PUBLIC queries from the inventory, because the path, the client address and the time are all that log keeps. The main log format in Budibase's hosting/proxy/nginx.prod.conf at v4.1.0 records $request, $status, $body_bytes_sent and $request_length but not the request body, so the value __proto__ never reaches it. A response to a PUBLIC find query whose body_bytes_sent is far above the usual size is the one hint that log can give. On the database side, look in the profiler collection, the slow-operation log or the audit log, if any of them was enabled, for commands on the collections behind those queries: find with filter: {}, update with q: {} and multi: true, and delete (remove in profiler output) with q: {} and limit: 0. The server records commands, not driver method names, so the words updateMany and deleteMany do not appear there. Cover the whole period since the installation moved to 3.39.18 or later. With default settings these records mostly do not exist, because MongoDB's documentation states that the profiler is off by default and the slow-operation threshold is 100 milliseconds, while audit logging exists only in MongoDB Enterprise and Atlas and writes CRUD operations only with auditAuthorizationSuccess: true. None of this can be switched on retroactively, so a search that finds nothing does not show that no attack took place.
  • Weigh a prerelease build against waiting. The only published builds with the fix are the cloud prereleases from v4.2.0-cloud.3, so a self-hosted team has to choose between running a prerelease and keeping the mitigations above until a regular release includes commit d04b900.
  • Do not roll back to old 3.x releases. Versions before 3.39.18 lack this flaw, but a rollback is no workaround because versions before 3.39.12 are open to CVE-2026-54350, the anonymous operator injection into the same published-app queries.

Conclusion

The flaw is small in code and wide in effect. A feature that let callers name a field was added to a loop that copied keys by assignment, and JavaScript treats one key name differently from all others. Budibase's fix is correct and narrow: it repairs the copy, and it leaves the MongoDB integration willing to run an empty filter from a public query without a second look. The researcher's recommendation to validate the final filter would have covered this bug and the next one of its kind.

On November 26 the larger problem is the version field. An advisory that names 4.0.0 as patched tells administrators that an upgrade ends the matter, while the code of 4.0.0, 4.0.1 and 4.1.0 shows the same assignment and the fix exists only in prerelease builds. We assess with moderate confidence that the first regular release after 4.1.0 will include the fix, because master has carried d04b900 since November 24. Until that release appears and the advisory is corrected, the configuration of public MongoDB queries is the only control a self-hosted team has over this flaw.

Sources

Table of Contents
  1. Contents are built when the page loads

Have a story? Become a contributor.

We work with independent researchers and cybersecurity professionals. Send us a tip or submit your article for editorial review.

Questions on the topic

Which Budibase version fixes CVE-2026-137498?
The advisory names 4.0.0, but the source of Budibase 4.0.0, 4.0.1 and 4.1.0 still contains the vulnerable assignment. The fix, commit d04b900 of November 23, 2026, is in prerelease builds from v4.2.0-cloud.3 and in master.
Is my Budibase app affected by CVE-2026-137498?
Only if it runs Budibase 3.39.18 up to 4.1.0 and publishes a MongoDB query that has the PUBLIC role and uses a request parameter as a JSON key. Cloud prereleases from v4.2.0-cloud.3 contain the fix.
Is CVE-2026-137498 in Budibase being exploited?
Neither the Budibase advisory nor the CVE record published by VulnCheck on November 26, 2026 mentions exploitation. The researcher verified the flaw at source level with a local harness and tested no live system.