All vulnerabilities

Servers and applications

CVE-2026-54350

Anonymous NoSQL operator injection via published-app query templates

Severity
Critical 9.8
Published
11 Jun 2026
Last changed
30 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.39.12
Exploit chance
0.5% in the next 30 daysHigher than 46% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
SQL injection (CWE-89)NoSQL injection (CWE-943)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-8qv3-p479-cj62
Sources
NVD, Project advisories (GitHub)

Description

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.

From Budibase/budibase's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
BudibaseServers and applications · cpe:a:budibase:budibase
  • Every version before 3.39.12
BudibaseServers and applications · github:budibase/budibase
  • Every version before 3.39.12

About Budibase

low-code development platform

From Wikidata, CC0 1.0.
Docker Hub pulls
2,327,272Docker Hub, 15 Nov 2026
GitHub stars
28,419GitHub, 15 Nov 2026
Forks
2,238GitHub, 15 Nov 2026
Latest release
v4.0.0GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
First published on GitHub
7 Jun 2019GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-54350
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-54350
  • GitHub Advisory Database https://github.com/advisories/GHSA-8qv3-p479-cj62
  • github.com https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62