CVE-2026-54350 Budibase: Anonymous NoSQL operator injection via published-app query templates

Critical 10.0 Published Updated

Unauthenticated attackers can inject NoSQL operators into published app queries to read or modify all documents in the backing database.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-54350?

CVE-2026-54350 is a critical code injection vulnerability in budibase, published on 26 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-943, CWE-89

Which versions are affected by CVE-2026-54350?

2 open source packages ship an affected version, including @budibase/server. It affects 1 product.

PackageAffectedFixed in
@budibase/server npmAll versions3.39.12
@budibase/server npmAll versions3.39.12

Products include Budibase Budibase.

How do I fix CVE-2026-54350?

Upgrade @budibase/server to 3.39.12 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-54350 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-54350 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-8qv3-p479-cj62.

Is CVE-2026-54350 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free