CVE-2026-54350: Budibase NoSQL injection in published app query templates

CVE-2026-54350 · Severity: critical · CVSS 10 · Published 2026-06-26

Budibase is a low-code platform used to build internal business applications. A critical security flaw allows unauthenticated internet users to bypass database filters and access or modify all records within an application's database (such as MongoDB or Elasticsearch). This could lead to the total exposure of sensitive customer data, passwords, and internal records, or the unauthorized modification of entire datasets with a single request.

Technologies: @budibase/server (npm). Vendors: npm.

Quick answers

Is CVE-2026-54350 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-54350 being exploited in the wild.
How severe is CVE-2026-54350?
Critical severity, with a CVSS score of 10, published 26 June 2026.
Which products and versions are affected?
@budibase/server (npm) < 3.39.12, SEMVER:introduced=0,fixed=3.39.12.
Is there a fix for CVE-2026-54350?
Yes. @budibase/server (npm): upgrade to 3.39.12 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-54350 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-54350?
Check whether you run @budibase/server (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • @budibase/server (npm): upgrade to 3.39.12 or later
    npm install @budibase/server@3.39.12

Technical details

A NoSQL injection vulnerability exists in Budibase's query handling logic. The 'enrichContext' function in 'queries.ts' performs raw string substitution of user parameters into JSON query bodies without escaping JSON metacharacters like quotes or braces. While the system filters Handlebars markers, it fails to sanitize characters that allow an attacker to break out of a JSON string and inject new keys (e.g., '$exists: true'). This allows an unauthenticated attacker to override query filters. Because the 'authorized' middleware short-circuits for queries marked as 'PUBLIC' and does not enforce CSRF, an attacker only needs the public application ID to execute these queries against the backend database (MongoDB, CouchDB, Elasticsearch, or DynamoDB). The vulnerability is fixed in version 3.39.12.

Affected products

  • Budibase budibase/server <= 3.39.12

Identifiers

  • CVE-2026-54350
  • GHSA-8qv3-p479-cj62

Timeline

  • 2026-06-11: advisory: GitHub Security Advisory published
  • 2026-06-26: disclosed: NVD publication date

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.