Direct answer: CVE-2026-137498 is a Budibase flaw with CVSS score 10.0. A guest with no login can read, change, or delete every document in 1 MongoDB collection through a query with Public access. Today, check your Budibase version, then update to 4.1.0.
The same release closes 2 more critical flaws. CVE-2026-137499 (CVSS 9.8) opens Builder accounts with no password through OIDC login. CVE-2026-137494 (CVSS 9.9) lets a user with write access delete attachments of other apps.
Main condition: self-hosted Budibase 3.39.18 to below 4.0.0 is affected by 137498, 3.41.0 to below 4.0.0 by 137499, and every version below 4.0.0 by 137494. None of them is in CISA KEV yet, and there is no attack report yet. Limit: this article has no payload, no sample attack request, and no name of the parameter that is used.
We read the CVE-2026-137498 advisory, the CVE-2026-137499 advisory, the CVE-2026-137494 advisory, the Budibase GitHub advisory list, the Budibase GitHub releases page, 3 CVE records, the official Budibase docker compose file, and CISA KEV on 28 November 2026. We ran all scripts in Steps 1 to 5 in a podman pod with the official Budibase 3.51.0 and 4.1.0 images, and MongoDB 7.0 with dummy data.
Important limit: we did not test Budibase Cloud, Kubernetes or Helm, the docker compose layout, versions 3.39 to 3.44, or a real IdP. For CVE-2026-137494, we only check the version. All test data is dummy data.
Problem: MongoDB queries with Public access in Budibase
Budibase is an open source low-code platform for internal apps, forms, and automations. Many teams host it themselves with 1 Docker image, then connect it to production databases through datasources.
In Budibase, a query is a saved command for 1 datasource, for example a search for orders in MongoDB. Each query has an access level: Public, Basic, Power, or Admin. Public access means that a guest with no login can call that query from a published app.
Teams often use Public access for customer forms or status pages. The main flaw is on this path, because Public access skips the login check and the CSRF check.

Budibase released 4.0.0 and 3.51.0 on 10 November 2026. On the same day, 30 GitHub advisories came out: 7 critical and 23 high. Release 4.0.1 came out on 16 November, and 4.1.0 on 23 November.
VulnCheck published the CVE records on 26 November. So the CVE numbers came out 16 days after the technical detail was in the advisories. A server that has not updated since 10 November has been exposed for 18 days.
How it works: 3 main flaws, advisory-level summary
This part uses the official summaries. Its goal is to help you pick the correct steps, not to explain how to attack.
CVE-2026-137498: the MongoDB query filter can disappear
Per the CVE-2026-137498 advisory, a guest can remove the filter of a MongoDB query that has Public access. This works through a request parameter that the query uses as a JSON key. The final filter becomes empty, so a find, updateMany, or deleteMany action hits every document in the collection. CVSS 3.1 score: 10.0.
The advisory names 5 conditions:
- There is a MongoDB datasource.
- There is a query with Public access in a published app.
- The query uses a request parameter as a JSON key.
- The app ID and the query ID are known. Both show in normal requests.
- reCAPTCHA is off, or the attacker passes reCAPTCHA.
The code that causes this flaw came in version 3.39.18. The advisory confirms 3.39.18 to 3.44.0. The CVE-2026-137498 record uses the range 3.39.18 to below 4.0.0.
CVE-2026-137499: Builder account takeover through OIDC
Per the CVE-2026-137499 advisory, version 3.41.0 added a path that links an OIDC login to an existing account by email. That email does not have to be verified at the IdP. The link rules block accounts with a password, inactive accounts, Admins, and accounts with an SSO link. The rules do not block Builders.
As a result, a person with an IdP account that has the same email can sign in as a Builder with no password. A Builder opens all apps, datasources with production database passwords, and automations. Builders with no password are common when SSO is required. CVSS 3.1 score: 9.8.
CVE-2026-137494: attachments are not bound to the app
Per the CVE-2026-137494 advisory, the attachment file key comes from the client and is not bound to the app. A user with write access to a table can delete files of another app in the same bucket. That user can also read a file if the key is known. This flaw needs a login. CVSS 3.1 score: 9.9.
| CVE | Flaw | Access | Score |
|---|---|---|---|
| CVE-2026-137498 | The filter of a MongoDB query with Public access can disappear. Read, change, or delete every document in 1 collection | No login | CVSS 3.1 10.0 |
| CVE-2026-137499 | An OIDC login with an unverified email signs in as a Builder account with no password | IdP account | CVSS 3.1 9.8 |
| CVE-2026-137494 | The attachment key comes from the client. Deletes files of other apps. Reads a file if the key is known | Login with table write access | CVSS 3.1 9.9 |

Exploitation status as of 28 November 2026
There is no attack report yet, but the public advisories have held technical detail since 10 November. Treat every Budibase below 4.0.0 that is open to the internet as a target.
| Source | Status |
|---|---|
| Budibase GitHub advisories, 10 November | 30 advisories: 7 critical and 23 high. The advisories hold technical detail. We do not repeat that detail |
| VulnCheck CVE records, 26 November | CVE numbers and version ranges for 137494, 137498, and 137499 |
| CISA KEV | Not in the catalog as of 28 November |
| Attack reports | No public report as of 28 November |
| Exposure time | A server below 4.0.0 has been exposed for 18 days since the advisories came out |
Flaws in web apps are often used within days after the detail comes out. This pattern shows in the GeoServer flaw CVE-2026-120705, the Drupal flaw CVE-2026-132165, and the Mitel MiCollab flaw CVE-2026-133323.
Who is most at risk
Every self-hosted Budibase below 4.0.0 needs the update. This table helps you pick which server to do first.
| Server condition | Risk | Reason |
|---|---|---|
| Version 3.39.18 to 3.51.0, open to the internet, a MongoDB query with Public access in a published app | High | CVE-2026-137498 needs no login, CVSS 10.0. Every document in 1 collection can be read, changed, or deleted |
| Version 3.41.0 to 3.51.0, OIDC on, the IdP allows self sign-up | High | CVE-2026-137499 opens Builder accounts with no password. A Builder controls all apps and datasources |
| Old version, tables with an attachment column, many users with write access | Check | CVE-2026-137494 needs a login, but files of other apps can be deleted |
| Old version, internal network only | Check | Other computers on the internal network can still send requests. The update is still required |
| Version 4.0.0 or later | Lower | The flaws are closed. Still look for signs and review queries with Public access |

Rama Digital analysis: 1 person often sets up Budibase fast for a team need, and then it rarely gets updates. Its datasources hold production database passwords. So 1 Builder account takeover can open data outside Budibase.
Vulnerable and fixed versions
Compare your Budibase version with this table. Source: the 3 Budibase GitHub advisories and the 3 CVE records.
| Version | CVE-2026-137498 | CVE-2026-137499 | CVE-2026-137494 |
|---|---|---|---|
| Below 3.39.18 | no | no | vulnerable |
| 3.39.18 to 3.40.x | vulnerable | no | vulnerable |
| 3.41.0 to 3.51.0 | vulnerable | vulnerable | vulnerable |
| 4.0.0 or later | fixed | fixed | fixed |

Important notes:
- 4.0.0 is a major version. Read the 4.0.0 release notes and the 4.1.0 release notes before the update.
- 3.51.0 came out on the same day as 4.0.0, but the CVE records still list it as vulnerable. Do not stop at 3.51.0.
- The
v4.2.0-cloud.ximage tags are for Budibase Cloud only. For self-hosting, usebudibase/budibase:v4.1.0. - The official compose file uses the
budibase/apps,budibase/worker, andbudibase/proxyimages with the latest tag. We did not test the compose path. - We did not check Budibase Cloud. This article is for self-hosted Budibase.
Before you start
- A list of all Budibase servers, including staging and trial servers.
- Shell access to the server with docker or podman, and python3.
- The name of the Budibase container. See it with
docker ps. - An Admin account in the Budibase portal for the Auth settings and query access.
- Admin access to the IdP if OIDC is on, for example Okta, Microsoft Entra ID, or Keycloak.
- Disk space for the log and the volume archive, and a place to keep them outside that server.
Step 1: Check the Budibase version
Manual way: read the version field in /app/package.json inside the Budibase container. Or read the budibase/budibase image tag in docker ps. For many servers, use the script below.
Save this script as check-version-budibase.sh. The script looks for a Budibase container in docker and podman, then compares its version with the limit of each CVE. The script also accepts version numbers from other servers. The script only reads.
#!/usr/bin/env bash
# Check the Budibase version for CVE-2026-137498, CVE-2026-137499, and CVE-2026-137494.
# The script only reads. The script changes nothing.
# Limit from the CVE records and the Budibase GitHub advisories: fixed from 4.0.0 (released 10 November 2026). Latest release 4.1.0.
# Use: bash check-version-budibase.sh (find Budibase containers in docker and podman)
# bash check-version-budibase.sh 3.51.0 4.1.0 (check versions from another server, for example Kubernetes)
set -u
clean() { printf '%s' "$1" | LC_ALL=C tr -cd '[:print:]' | cut -c1-40; }
older() { [ "$1" = "$2" ] && return 1; [ "$(printf '%s\n%s\n' "$1" "$2" | sort -V | head -n1)" = "$1" ]; }
row() { printf '%-12s %-9s %-10s %-21s %s\n' "$1" "$2" "$3" "$4" "$5"; }
rate() {
local v; v=$(printf '%s' "$2" | sed -E 's/^v//; s/-.*$//' | grep -oE '^[0-9]+\.[0-9]+\.[0-9]+$')
if [ -z "$v" ]; then row "$1" "$(clean "$2" | cut -c1-9)" '?' '-' 'Unknown version. Read the image tag.'; return; fi
if ! older "$v" 4.0.0; then row "$1" "$v" FIXED '-' 'This version contains the fix.'; return; fi
local c=137494; older "$v" 3.39.18 || c="$c 137498"; older "$v" 3.41.0 || c="$c 137499"
row "$1" "$v" VULNERABLE "$c" 'Update to 4.1.0 today.'
}
row CONTAINER VERSION STATUS 'CVE-2026-...' ACTION
if [ $# -gt 0 ]; then for v in "$@"; do rate '-' "$v"; done; exit 0; fi
found=0
for rt in docker podman; do
command -v "$rt" >/dev/null 2>&1 || continue
while IFS=$'\t' read -r name image; do
case "$image" in *budibase/budibase*|*budibase/apps*|*budibase/worker*) ;; *) continue ;; esac
ver=$("$rt" exec "$name" sh -c 'cat /app/package.json 2>/dev/null' 2>/dev/null | grep -m1 '"version"' | cut -d'"' -f4)
[ -n "$ver" ] || ver=${image##*:}
rate "$(clean "$name" | cut -c1-12)" "$ver"
printf ' image: %s (%s)\n' "$(clean "$image")" "$rt"
found=1
done < <("$rt" ps --format '{{.Names}}\t{{.Image}}' 2>/dev/null)
done
if [ $found -eq 0 ]; then
row '-' '-' 'NONE' '-' 'No Budibase container is running.'
echo 'Using Kubernetes? Read the image tag: kubectl get pods -A -o jsonpath="{..image}" | tr " " "\n" | grep budibase'
fi
exit 0
# With no argument: the script looks for a Budibase container in docker and podman
bash check-version-budibase.sh
# Check version numbers from other servers, for example Kubernetes
bash check-version-budibase.sh 3.40.2 3.39.0 4.0.1

Our test result: in a container with the official 3.51.0 image, the script shows VULNERABLE for CVE-2026-137494, 137498, and 137499. Of 3 other version numbers, 3.40.2 shows VULNERABLE for 137494 and 137498, 3.39.0 shows VULNERABLE for 137494 only, and 4.0.1 shows FIXED.
Edge tests: the numbers 3.51 and abc show "?", which means an unknown version. The number 3.39.18 shows VULNERABLE for 137494 and 137498. The number 3.41.0 shows VULNERABLE for all 3 CVEs.
Check the result:
- "VULNERABLE": do Steps 2 and 3 today. The CVE column shows which flaws apply.
- "FIXED": the version contains the fix. Still run Steps 2 and 5, because the flaws can be used before the update.
- "?": the version is unknown. Read the image tag or
/app/package.jsonby hand.
Step 2: Check public MongoDB queries and OIDC login
This step answers 2 questions: is there a MongoDB query with Public access, and is OIDC login on. The answers set the work order, not the safety status.
Check MongoDB queries with Public access
Save this script as check-public-query-budibase.sh. The script reads the CouchDB database inside the container, then shows every MongoDB query with Public access in a published app. The script only reads and shows no passwords.
#!/usr/bin/env bash
# Check MongoDB queries that are open to the PUBLIC role in published Budibase apps. This is the CVE-2026-137498 condition.
# The script only reads the CouchDB database in the container. The script changes nothing.
# Use: bash check-public-query-budibase.sh (find a budibase/budibase or budibase/couchdb container)
# bash check-public-query-budibase.sh budibase (use this container)
set -u
C=${1:-}; RT=
for rt in docker podman; do
command -v "$rt" >/dev/null 2>&1 || continue
if [ -n "$C" ]; then "$rt" container inspect "$C" >/dev/null 2>&1 && { RT=$rt; break; }; continue; fi
C=$("$rt" ps --format '{{.Names}}\t{{.Image}}' 2>/dev/null | awk -F'\t' '$2 ~ /budibase\/(budibase|couchdb)/ {print $1; exit}')
[ -n "$C" ] && { RT=$rt; break; }
done
[ -n "$RT" ] || { echo 'No Budibase or CouchDB container found. Give its name: bash check-public-query-budibase.sh <name>'; exit 1; }
INSIDE='[ -f /data/.env ] && { set -a; . /data/.env; set +a; }
A="${COUCHDB_USER:-}:${COUCHDB_PASSWORD:-}"; B=http://127.0.0.1:5984
echo "VER $(sed -n "s/.*\"version\": *\"\([^\"]*\)\".*/\1/p" /app/package.json 2>/dev/null | head -n 1)"
g() { curl -s -u "$A" "$B/$1" | tr -d "\n"; }
for db in $(curl -s -u "$A" "$B/_all_dbs" | tr -d "[]\"" | tr "," "\n" | grep "^app_" | grep -v "^app_dev_"); do
echo "DB $db"; echo "META $(g "$db/app_metadata")"; echo "ROLE $(g "$db/role_PUBLIC")"
echo "DS $(g "$db/_all_docs?startkey=%22datasource_%22&endkey=%22datasource_%EF%BF%B0%22&include_docs=true")"
echo "Q $(g "$db/_all_docs?startkey=%22query_%22&endkey=%22query_%EF%BF%B0%22&include_docs=true")"
done'
"$RT" exec "$C" sh -c "$INSIDE" 2>/dev/null | python3 -I -c '
import json, sys
def b(s, n): return "".join(ch for ch in str(s) if ch.isprintable())[:n]
apps, cur, ver = [], None, ""
for line in sys.stdin:
tag, _, rest = line.rstrip("\n").partition(" ")
if tag == "VER":
ver = rest.strip()
elif tag == "DB":
cur = {"db": rest}; apps.append(cur)
elif cur is not None:
try: cur[tag] = json.loads(rest)
except Exception: cur[tag] = {}
if not apps:
print("No published app, or the database cannot be read. Run the script as a user that can use docker."); sys.exit(0)
def rate(v):
try: return tuple(int(x) for x in v.lstrip("v").split("-")[0].split(".")[:3])
except Exception: return None
fixed = (rate(ver) or (0,)) >= (4, 0, 0)
rows, other = [], 0
for a in apps:
name = (a.get("META") or {}).get("name") or a["db"]
perms = (a.get("ROLE") or {}).get("permissions") or {}
ds = {r["id"]: r.get("doc") or {} for r in (a.get("DS") or {}).get("rows", [])}
qs = {r["id"]: r.get("doc") or {} for r in (a.get("Q") or {}).get("rows", [])}
for rid, lv in perms.items():
if not rid.startswith("query_") or not lv: continue
q = qs.get(rid, {}); d = ds.get(q.get("datasourceId"), {})
if d.get("source") != "MONGODB":
other += 1; continue
action = ((q.get("fields") or {}).get("extra") or {}).get("actionType", "?")
rows.append((b(name, 12), b(q.get("name", rid), 16), b(action, 10), b(d.get("name", "?"), 12), b(",".join(lv) if isinstance(lv, list) else lv, 6)))
f = "{:<12} {:<16} {:<10} {:<12} {:<6} {}"
print(f.format("APP", "QUERY", "ACTION", "DATASOURCE", "PUBLIC", "STATUS"))
for r in rows: print(f.format(*r, "REVIEW" if fixed else "CHECK"))
if rows:
print("Result: MongoDB queries open to the public: %d (published apps: %d)." % (len(rows), len(apps)))
if fixed: print("Version %s contains the CVE-2026-137498 fix. Still review: does this query need Public access?" % ver.lstrip("v").split("-")[0])
else: print("Action: update to 4.1.0. Then set the access of these queries to Basic or higher, and publish the app again.")
else:
print("Result: no MongoDB query is open to the public (published apps: %d)." % len(apps))
if other: print("Info: other queries (not MongoDB) open to the public: %d. This CVE does not concern them." % other)
'
# Run on the Budibase server. Write the name of your Budibase container.
bash check-public-query-budibase.sh budibase

Our test result: on 3.51.0 with dummy data, the script finds 1 MongoDB query cari_pesanan (find action) in the Toko app with Public access. Status: CHECK. The script also shows 1 REST query that is open to the public as info, because this CVE concerns MongoDB only.
Through the APIAPIThe official door 2 systems use to exchange data, without anybody copying it by hand.Open the glossary, 3.51.0 refuses new Public access for a MongoDB query with code 400 and the message "MongoDB queries cannot be granted public access". So we wrote that permission directly into the app database, to copy a permission made before the update to 3.51.0. A guest can still call that query with code 200.
Check the OIDC login
Save this script as check-sso-budibase.sh. The script reads 1 public settings page, which is the page that the Budibase login screen also reads. The script shows the status of OIDC login, Google login, and Enforce SSO.
#!/usr/bin/env bash
# Check Budibase SSO login for CVE-2026-137499 (account linking through OIDC without a verified email).
# The script only reads 1 public settings page. The Budibase login screen also reads this page.
# Use: bash check-sso-budibase.sh https://budibase.office.example
set -u
URL=${1:-}
case "$URL" in http://*|https://*) ;; *) echo 'Use: bash check-sso-budibase.sh https://budibase-address'; exit 2 ;; esac
if printf '%s' "$URL" | LC_ALL=C grep -q "[^A-Za-z0-9._~:/?#@!\$&()*+,;=%-]"; then echo 'The URL contains characters that are not valid.'; exit 2; fi
URL=${URL%/}
J=$(curl -s --max-time 15 "$URL/api/global/configs/public?tenantId=default") || { echo "Cannot reach $URL"; exit 1; }
printf '%s' "$J" | python3 -I -c '
import json, sys
try:
c = json.load(sys.stdin).get("config") or {}
except Exception:
print("The answer is not a Budibase settings page. Check the URL."); sys.exit(1)
if "oidc" not in c:
print("The answer has no login settings. Check the URL."); sys.exit(1)
oidc, google, forced = c.get("oidc") is True, c.get("google") is True, c.get("isSSOEnforced") is True
f = "{:<16} {:<7} {}"
print(f.format("SETTING", "VALUE", "MEANING"))
print(f.format("OIDC login", "ON" if oidc else "OFF", "The CVE-2026-137499 condition is met." if oidc else "The CVE-2026-137499 condition is not met."))
print(f.format("Google login", "ON" if google else "OFF", "The advisory names OIDC only."))
print(f.format("Enforce SSO", "YES" if forced else "NO", "Password login is closed." if forced else "Password login stays open."))
if oidc:
print("Result: OIDC ON. A version below 4.0.0 is affected by CVE-2026-137499. Check the version with the step 1 script.")
else:
print("Result: OIDC is off. CVE-2026-137499 does not apply now. The update is still required for the other CVEs.")
'
# Write your Budibase address. The script only reads the public settings page.
bash check-sso-budibase.sh http://budibase.example.co.id

Our test result: with a dummy OIDC setup on, the script shows OIDC login ON, Google login OFF, and Enforce SSO NO. Final result: OIDC ON, so a version below 4.0.0 is affected by CVE-2026-137499.
Edge tests: a URL with characters that are not valid gets exit code 2. An address that cannot be reached and an address that is not Budibase each get their own message with exit code 1.
Check the result: a vulnerable server with a MongoDB query in CHECK status, or with OIDC ON, is the first priority. Write down the app and query names. You need this list in Steps 4 and 5.
Step 3: Save the log and the data volume, then update to 4.1.0
Only the update closes these flaws. The /data volume holds the app databases, files, and the .env file with secret keys. Save a copy first, because the volume is evidence if the server was touched.
Save the log first. The single Budibase image writes access logs to the container log. That log goes away when the container is removed. With no log, Step 5 cannot see query calls from before the update.
For Budibase with 1 image, the order is as follows:
# Save the container log and a copy of the data volume first. Using docker? Replace podman with docker.
podman logs budibase > budibase-log-before-update.txt 2>&1
wc -l < budibase-log-before-update.txt
podman stop budibase
podman run --rm --pod bbuji --memory 1g -v budibase_data:/data --entrypoint tar docker.io/budibase/budibase:v4.1.0 -czf - -C /data . > budibase-data-before-update.tgz
du -h budibase-data-before-update.tgz
# Run the 4.1.0 image with the same data volume
podman rm budibase
podman run -d --name budibase --pod bbuji --memory 5g -e AWS_REGION=us-east-1 -v budibase_data:/data docker.io/budibase/budibase:v4.1.0
# Check the version, the public queries, and the app again
bash check-version-budibase.sh
bash check-public-query-budibase.sh budibase
curl -s -o /dev/null -w '%{http_code}\n' http://budibase.example.co.id/app/toko

Our test result: the container log with 1,108 lines is saved to a file. The data volume archive has 7.7 MB. The 4.1.0 container runs with the same volume, the Step 1 script shows FIXED, and the Toko app answers code 200.
The old MongoDB query keeps Public access after the update. The query script shows REVIEW, because 4.1.0 contains the fix. On 4.1.0, new Public access for a MongoDB query is accepted again with code 200.
After the container was made again, the signs script found no query calls in the log. The old log went away with the old container. We did not test docker compose, Kubernetes, Budibase Cloud, or versions 3.39 to 3.44.
Important before rm: make sure that /data is on a volume or a host folder, not inside the container. Check the Mounts part in the output of docker inspect budibase. If /data is inside the container, the .tgz archive is the only copy.
The commands above use --pod bbuji from our test. On your server, use the same ports, volume, and env variables as the old container, for example -p 10000:80. In our test, 3.51.0 needed -e AWS_REGION=us-east-1, and we used the same env on 4.1.0.
For docker compose, save the log of each container with docker compose logs first. Then run docker compose pull and docker compose up -d. We did not test this path. Check the version number after that, then write the number into the Step 1 script.

Check the result: the Step 1 script shows "FIXED". Open 1 published app and log in to the portal to make sure that the service still works.
Step 4: Temporary layers if the update is delayed, NOT a fix
Use this step only if the update cannot happen today. This step does NOT make Budibase safe. The old version is still vulnerable. All layers below are Rama Digital analysis, not vendor rules.
- Public query to Basic: in the builder, open each MongoDB query from Step 2. Change the access from Public to Basic, then publish the app again. Effect: guest forms that use that query stop working.
- OIDC: turn off OIDC in the Auth settings, or turn off self sign-up at the IdP. Before that, make sure that 1 Admin account has a password. Effect: users with only an SSO login cannot sign in.
- Verified email: set the IdP to send only verified emails.
- Attachments: limit who can write to tables with an attachment column.
- Network: limit Budibase access to the office network or a VPN.
# This step does NOT make Budibase safe. The update is still required.
# 1. In the builder, change the MongoDB query access from Public to Basic. Then publish the app again.
bash check-public-query-budibase.sh budibase
# 2. In the login settings (Auth), turn off OIDC until the update is done.
bash check-sso-budibase.sh http://budibase.example.co.id

Our test result: after the query access changed to Basic and the app was published again, the script shows that no MongoDB query is open to the public. The REST query still shows as info. After OIDC was turned off, the SSO script shows OIDC is off, and the CVE-2026-137499 condition is not met.
Technical note: after the change to Basic, the app database still keeps the query id with an empty access list. Our script skips that empty list.
reCAPTCHA on a public app does not close this flaw. The advisory says that an attacker who passes reCAPTCHA can still use the flaw. Basic access is not a fix either, because a logged-in user can still call the same query.
Step 5: Look for signs that the server was touched
The update closes the flaws, but it does not bring back deleted documents or accounts that were taken over. So look for traces before and after the update. Start from 10 November 2026 or earlier.
The advisories have no list of attack signs. The signs below are Rama Digital analysis:
- A Builder account with no password that got a new SSO link. Compare the time with the IdP log.
- An OIDC login with an unverified email in the IdP log.
- Many
POST /api/v2/queries/<id>calls to a query with Public access from addresses that you do not know. - A MongoDB document count that drops or changes in bulk. Compare it with the backup.
- A login to a production database with a datasource account from an address that you do not know.
Save this script as check-signs-budibase.sh. Part 1 reads Builder and Admin accounts with no password or with an SSO link. Part 2 counts query calls per address in the container log of the last 7 days. The script only reads, and does not change, delete, or send anything.
#!/usr/bin/env bash
# Look for common signs of CVE-2026-137499 and CVE-2026-137498 in Budibase. The script only reads. The script changes nothing.
# Part 1: Builder or Admin accounts with no password, or with an SSO link. Part 2: query calls in the logs of 7 days.
# Use: bash check-signs-budibase.sh budibase (one budibase/budibase container)
# bash check-signs-budibase.sh couchdb proxy (docker compose: the CouchDB container, then the proxy container)
set -u
C=${1:-}; L=${2:-$C}; RT=
[ -n "$C" ] || { echo 'Use: bash check-signs-budibase.sh <budibase-or-couchdb-container> [proxy-container]'; exit 2; }
for rt in docker podman; do command -v "$rt" >/dev/null 2>&1 && "$rt" container inspect "$C" >/dev/null 2>&1 && { RT=$rt; break; }; done
[ -n "$RT" ] || { echo "Container $C not found."; exit 1; }
INSIDE='[ -f /data/.env ] && { set -a; . /data/.env; set +a; }
A="${COUCHDB_USER:-}:${COUCHDB_PASSWORD:-}"; B=http://127.0.0.1:5984
for db in $(curl -s -u "$A" "$B/_all_dbs" | tr -d "[]\"" | tr "," "\n" | grep "^global-db"); do
curl -s -u "$A" "$B/$db/_all_docs?startkey=%22us_%22&endkey=%22us_%EF%BF%B0%22&include_docs=true" | tr -d "\n"; echo
done'
echo '== 1. Builder or Admin accounts to look at'
"$RT" exec "$C" sh -c "$INSIDE" 2>/dev/null | python3 -I -c '
import json, sys
def b(s, n): return "".join(ch for ch in str(s) if ch.isprintable())[:n]
f = "{:<26} {:<8} {:<9} {:<6} {:<17} {}"
print(f.format("ACCOUNT", "ROLE", "PASSWORD", "SSO", "CHANGED (UTC)", "NOTE"))
checked = flagged = 0
for line in sys.stdin:
try: rows = json.loads(line).get("rows", [])
except Exception: continue
for r in rows:
u = r.get("doc") or {}
admin = (u.get("admin") or {}).get("global") is True
builder = (u.get("builder") or {}).get("global") is True
if not (admin or builder): continue
checked += 1
pw, sso = bool(u.get("password")), u.get("providerType") or ""
if pw and not sso: continue
flagged += 1
if sso: note = "CHECK: SSO link. Compare the time with the IdP log."
else: note = "RISK: Builder with no password. CVE-2026-137499 target."
print(f.format(b(u.get("email", "?"), 26), "Admin" if admin else "Builder", "YES" if pw else "NO", b(sso or "-", 6), b(str(u.get("updatedAt", "-"))[:16].replace("T", " "), 17), note))
print("Checked: %d Builder or Admin accounts. To look at: %d." % (checked, flagged))
'
echo '== 2. Query calls in the logs of the last 7 days (per address)'
"$RT" logs --since 168h "$L" 2>&1 | grep -E '"POST /api/(v2/)?queries/' | python3 -I -c '
import re, sys
from collections import OrderedDict
def b(s, n): return "".join(ch for ch in str(s) if ch.isprintable())[:n]
pat = re.compile(r"^(\S+) \S+ \S+ \[([^\]]+)\] \"POST (\S+) [^\"]*\" (\d{3}) .*\"([^\"]*)\"$")
data = OrderedDict()
for line in sys.stdin:
m = pat.match(line.strip())
if not m: continue
ip, when, path, code, xff = m.groups()
src = xff.split(",")[0].strip() if xff not in ("", "-") else ip
d = data.setdefault(src, {"n": 0, "code": {}, "first": when, "last": when})
d["n"] += 1; d["code"][code] = d["code"].get(code, 0) + 1; d["last"] = when
f = "{:<16} {:>6} {:<20} {:<27} {}"
print(f.format("ADDRESS", "COUNT", "CODES", "FIRST", "LAST"))
for src, d in sorted(data.items(), key=lambda x: -x[1]["n"])[:10]:
print(f.format(b(src, 16), d["n"], b(" ".join("%s:%d" % kv for kv in sorted(d["code"].items())), 20), b(d["first"], 27), b(d["last"], 27)))
if not data: print("No query calls in the logs of the last 7 days.")
print("Look for: unknown addresses with many 200 codes to public queries. Compare with the daily use pattern.")
'
# One budibase/budibase container
bash check-signs-budibase.sh budibase
# Docker compose: the CouchDB container, then the proxy container. We did not test this path.
bash check-signs-budibase.sh <container-couchdb> <container-proxy>


Our test result: the script checks 3 Builder or Admin accounts and marks 2 dummy accounts. The account manajer@contoh.co.id has an OIDC link, so it shows CHECK. The account staf.gudang@contoh.co.id is a Builder with no password, so it shows RISK.
The log part counts query calls per address: 203.0.113.77 with 9 calls (200:8, 400:1) and 198.51.100.23 with 3 calls (200:3). The 400 code comes from the dummy REST query. Both addresses are documentation addresses per RFC 5737.
Script limit: these patterns are common signs, not a full list. The container log goes away when the container is made again, and old log lines can be cut. Also use the log file that you saved in Step 3. A CHECK result is not proof of an attack, but a sign for a manual check.
If you find signs, follow this order:
- Cut internet access to Budibase. Do not remove the container yet.
- Keep the container log, the IdP log, and a copy of the data volume.
- Change the database passwords in all datasources, then the passwords of Builder and Admin accounts.
- Restore MongoDB documents from a backup if data is missing or changed.
- Ask for incident response help. Install 4.1.0, then watch the logs for 14 days.
Example: 1 morning of response for 2 Budibase servers
This simulation uses dummy data. The server names, times, and results are not customer data.
| Time (WIB) | Dummy server | What we check | Result | Action |
|---|---|---|---|---|
| 08.00 | app-gudang (public) | Step 1 | 3.46.0 VULNERABLE for 3 CVEs | First priority |
| 08.10 | app-gudang | Step 2 | 1 MongoDB query with Public access, OIDC ON | Look for signs before the update |
| 08.20 | app-gudang | Step 5 | 1 Builder with no password got an SSO link 2 days ago. The time does not match the IdP log | Cut internet access, keep logs and the volume, change the database passwords in the datasources |
| 09.00 | app-hr (internal) | Steps 1 and 3 | 3.38.4 VULNERABLE for 137494, then moved to 4.1.0 | Check the apps and attachments |
| 10.00 | app-gudang | Step 3 | Log and volume saved, moved to 4.1.0 | Open it again for the team |
| 10.30 | All servers | Steps 1 and 5 again | FIXED on 2 servers | Review queries with Public access, watch the IdP log for 14 days |
Lesson from this simulation: save the log before the update, because the update removes the container log. Change the datasource passwords if there is even 1 sign on a Builder account.
Who does the work
The server admin or vendor owns the Budibase update, the volume, and the proxy. The app owner owns the access of each query. The IdP admin owns the OIDC and self sign-up settings. The database owner changes the datasource passwords if needed.
Rama Digital recommendation: record each server, version, public address, datasource, and access owner in 1 table. This table also helps when new flaws appear, such as the RealVNC flaw CVE-2026-137738 and the VMware ESX flaw CVE-2026-123910.
Checklist for today
- List all Budibase servers. Owner: server admin. Evidence: a list of servers and versions.
- Check the version with Step 1. Owner: server admin. Evidence: the script output.
- Check public queries and OIDC with Step 2. Owner: server admin. Evidence: the output of 2 scripts.
- Look for signs with Step 5 before the update. Owner: server admin. Evidence: the script output.
- Save the log and the volume, then update to 4.1.0. Owner: server admin or vendor. Evidence: the Step 1 output after the update.
- If the update is delayed, add the temporary layers in Step 4. Owner: app owner and IdP admin. Evidence: the Step 2 script output.
Questions and answers
We do not use MongoDB. Are we safe?
Not yet. CVE-2026-137498 needs MongoDB, but CVE-2026-137499 and CVE-2026-137494 do not. The update to 4.1.0 is still required.
We do not use SSO. Does CVE-2026-137499 apply?
No, as long as OIDC is off. Check with the SSO script in Step 2. The update is still required because of the 2 other CVEs.
We are already on 3.51.0. Is that safe?
No. The CVE records list every version below 4.0.0 as vulnerable. In our test, 3.51.0 refuses new Public access for MongoDB queries, but old Public access stays in place.
Will our apps break after the update to 4.x?
4.0.0 is a major version, so read the release notes first. In our test, the dummy app still opened with the same volume. Try it on staging if you have one, and save the volume before the update.
Is Budibase Cloud affected?
We did not check Budibase Cloud. This article is for self-hosting. Ask the Budibase team about the status of your Cloud account.
Does Basic access close this flaw?
No. Basic access closes the guest path, but a logged-in user can still call the same query. This is Rama Digital analysis. The update is still required.
Does a clean result from the signs script prove that the server is safe?
No. The container log can go away or be cut, and the patterns in the script are not complete. Keep evidence, watch the logs after the update, and ask for an analysis if you have doubts.
Why is the old log gone after the update?
The single Budibase image writes access logs to the container log. When the container is removed, the log goes with it. Save it with docker logs before rm, or send the logs to another place.
Next step
Limits that still apply: Step 4 does not make Budibase safe, and the update does not bring back data or accounts that were touched. If your server shows signs in Step 5, or you need help with an audit and app recovery, use Vibe Code Rescue. For 1 urgent problem today, book a 30 minute session.
Sources
- The CVE-2026-137498 advisory, CVE-2026-137499 advisory, and CVE-2026-137494 advisory: flaws, scores, conditions, and affected versions.
- The Budibase GitHub advisory list: the number of advisories and the publish date.
- The Budibase GitHub releases page, the 4.0.0 release notes, and the 4.1.0 release notes: release dates and fixed versions.
- The CVE-2026-137498 record, CVE-2026-137499 record, and CVE-2026-137494 record: version ranges and CVE record dates.
- The official Budibase docker compose file: image names for the compose layout.
- CISA KEV: catalog status as of 28 November 2026.

