{"id":"CVE-2026-54350","published":"2026-06-26T20:44:00Z","modified":"2026-06-30T19:31:58Z","title":"Budibase: Anonymous NoSQL operator injection via published-app query templates","vendor":"Budibase","product":"budibase","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00538,"percentile":0.38801,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"},{"id":"CWE-943","name":"Improper Neutralization of Special Elements in Data Query Logic"}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62","tags":["x_refsource_CONFIRM"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":7.76},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-07-07","earliestUrl":"https://github.com/BiiTts/CVE-2026-54350-Budibase-NoSQL-Injection","repos":[{"name":"BiiTts/CVE-2026-54350-Budibase-NoSQL-Injection","url":"https://github.com/BiiTts/CVE-2026-54350-Budibase-NoSQL-Injection","stars":0,"created":"2026-07-07"}]},"first":{"date":"2026-07-07","source":"PoC-in-GitHub","url":"https://github.com/BiiTts/CVE-2026-54350-Budibase-NoSQL-Injection"},"provenance":"source"},"vendorSlug":"budibase","affectedVersions":[{"vendor":"Budibase","product":"budibase","versions":["< 3.39.12"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-30T19:31:35.604722Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@budibase/server","vulnerableRanges":["<3.39.12"],"patched":["3.39.12"],"from":["GHSA-8qv3-p479-cj62"],"provenance":"source"}],"summary":{"text":"An unauthenticated visitor to a published app can, over the network with a single HTTP request and no session or user interaction, read every document in the collection and, where the builder has published a PUBLIC write query, modify every document in it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:12Z"},"euvd":{"id":"EUVD-2026-39914","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-50136","published":"2026-06-26","fixed":"3.39.2","kev":false},{"cve":"CVE-2026-54351","published":"2026-06-26","fixed":"3.39.9","kev":false},{"cve":"CVE-2026-54352","published":"2026-06-26","fixed":"3.39.9","kev":false,"link":{"from":"CVE-2026-54352","to":"CVE-2026-54350","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@budibase/server","fromFixed":"3.39.9","toFixed":"3.39.12","daysApart":0}]}},{"cve":"CVE-2026-54350","published":"2026-06-26","fixed":"3.39.12","kev":false},{"cve":"CVE-2026-73304","published":"2026-08-13","fixed":"3.39.25","kev":false,"link":{"from":"CVE-2026-54350","to":"CVE-2026-73304","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@budibase/server","fromFixed":"3.39.12","toFixed":"3.39.25","daysApart":48}]}},{"cve":"CVE-2026-35219","published":"2026-08-17","fixed":"3.41.3","kev":false}],"package":"npm:@budibase/server"}}