{"id":"EUVD-2026-39914","enisaUuid":"b976a425-e89b-331b-aece-f13393a1bde7","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\u0027s {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\u0027s 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.","datePublished":"Jun 26, 2026, 8:44:00 PM","dateUpdated":"Jun 30, 2026, 7:31:58 PM","baseScore":10.0,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","references":"https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62\n","aliases":"CVE-2026-54350\nGHSA-8qv3-p479-cj62\n","assigner":"GitHub_M","epss":0.54,"enisaIdProduct":[{"id":"a9bb4882-02ad-376b-b850-ace9393e2f18","product":{"name":"budibase","vendor":{"name":"budibase"}},"product_version":"\u003c 3.39.12"}],"enisaIdVendor":[{"id":"445de0bc-969c-38d3-9997-dd13e17b019c","vendor":{"name":"budibase"}}],"enisaIdVulnerability":[{"id":"16dbeed3-4405-352a-b6b3-6dbb94afedc4","vulnerability":{"id":"GHSA-8qv3-p479-cj62","description":"Budibase has nonymous NoSQL operator injection via published-app query templates","datePublished":"Jun 23, 2026, 5:43:10 PM","dateUpdated":"Aug 12, 2026, 6:57:33 PM","baseScore":0.0,"references":"https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-54350\nhttps://github.com/Budibase/budibase\n","enisa_id":"EUVD-2026-39914\n","aliases":"CVE-2026-54350\nGHSA-8qv3-p479-cj62\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:51:29 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"5310d411-946a-3f03-9e55-7a8634b256e1","vulnerability":{"id":"CVE-2026-54350","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\u0027s {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\u0027s 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.","datePublished":"Jun 26, 2026, 8:44:00 PM","dateUpdated":"Jun 30, 2026, 7:31:58 PM","status":"PUBLISHED","baseScore":10.0,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","references":"https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62\n","enisa_id":"EUVD-2026-39914\n","assigner":"GitHub_M","epss":0.54,"dataProcessed":"Nov 21, 2026, 7:22:53 AM","vulnerabilityProduct":[{"id":"8786192b-39c7-3f5b-b236-778088de4f27","product":{"name":"budibase","vendor":{"name":"budibase"}},"product_version":"\u003c 3.39.12"}],"vulnerabilityVendor":[{"id":"db8b5e50-c0e3-3b8d-a8a8-8c914c4bde97","vendor":{"name":"budibase"}}]}}],"enisaIdAdvisory":[{"id":"b90c61e3-c235-32ca-9dc6-bd278e75fbae","advisory":{"id":"WID-SEC-W-2026-2041","description":"Budibase: Schwachstelle ermöglicht SQL-Injection","summary":"Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Budibase ausnutzen, um einen SQL-Injection Angriff durchzuführen.","datePublished":"Jun 23, 2026, 10:00:00 PM","dateUpdated":"Jun 28, 2026, 10:00:00 PM","baseScore":0.0,"references":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2041.json\nhttps://wid.cert-bund.de/portal/wid/securityadvisory?name\u003dWID-SEC-2026-2041\n","aliases":"CVE-2026-54350\n","source":{"id":8,"name":"csaf_certbund"},"advisoryProduct":[{"id":"9199f1a8-a1e1-36a3-b0ec-0c1e28aaef28","product":{"name":"budibase","vendor":{"name":"budibase"}}},{"id":"bde9c373-ac3e-302b-b823-858a643c0a79","product":{"name":"3.39.12","vendor":{"name":"open source"}}}]}}]}