SecurityContext

CVE-2026-54350: Budibase - Broken Access Control

  • Cve: CVE-2026-54350
  • Name: Budibase - Broken Access Control
  • Description: Budibase is an open-source low-code platform. Prior to 3.39.12, an unauthenticated visitor of any published Budibase app reads every document of the backing MongoDB, CouchDB, Elasticsearch, DynamoDB-PartiQL, or REST-with-JSON-body collection and, where the builder has published a PUBLIC write query, modifies every document of that collection with one HTTP request. enrichContext at packages/server/src/sdk/workspace/queries/queries.ts:121-138 substitutes parameter values into the raw JSON body of a query, then JSON.parses the result. The validator validateQueryInputs at packages/server/src/api/controllers/query/index.ts:61-71 rejects only Handlebars markers ({{, }}) in user input and does not escape JSON metacharacters (", \, }). A parameter value containing a closing quote and additional keys lifts attacker-controlled fields into the parsed filter object. For Mongo find, the parsed filter passes directly to collection.find() (packages/server/src/integrations/mongodb.ts:506-510). Duplicate-key JSON parsing overrides the builder's {name: "..."} with {name: {$exists: true}} and returns every document. The same primitive against an updateMany query (mongodb.ts:577-585) widens the filter scope to the full collection while the builder-controlled $set body runs against every matched document. The authorized middleware at packages/server/src/middleware/authorized.ts:141-148 short-circuits when the query's role is PUBLIC. CSRF is not enforced on this path. POST /api/v2/queries/:queryId (packages/server/src/api/routes/query.ts:63) accepts the call with no session, only an x-budibase-app-id header that is public from the published-app URL. This vulnerability is fixed in 3.39.12.
  • Impact: Unauthenticated attackers can read and modify all documents in public collections, leading to full data disclosure and unauthorized data modification.
  • Remediation: Update to version 3.39.12 or later.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00538
  • Epss percentile: 0.45939
  • Assignee: [email protected]
  • Published at: 2026-06-26T21:16:35Z
  • Age in days: 151
  • Modified at: 2026-06-30T20:17:30Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-54350
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62nvd2026-06-26
https://github.com/BiiTts/CVE-2026-54350-Budibase-NoSQL-Injectionpoc-in-github2026-07-07

References

UrlSourceTags
https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62nvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
budibase:budibase< 3.39.12nonvd/v1/products/budibase/budibase

Projects

RepositoryLink kindsIndexedUrl
Budibase/budibasepackage, security_advisoryyes/v1/repositories/Budibase/budibase

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2026-06-26
  • Remote: yes
  • Exposed hosts: 1239
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports