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

Source: https://junglewise.ai/threats/cve-2026-54350-budibase-nosql-injection-in-published-app-query-templates  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-26. Updated: 2026-06-26  
License: CC BY 4.0 with a link back

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)](https://junglewise.ai/threats/technologies/budibase-server). Vendors: [npm](https://junglewise.ai/threats/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

  ```sh
  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

- [https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62](https://github.com/Budibase/budibase/security/advisories/GHSA-8qv3-p479-cj62)

## Related threats

- [Budibase S3 signed upload URL issuance via attachments endpoint](https://junglewise.ai/threats/cve-2026-54356-budibase-s3-signed-upload-url-issuance-via-attachments-endpoint)
- [Budibase automation SSRF in webhook and integration steps](https://junglewise.ai/threats/cve-2026-35219-budibase-automation-ssrf-in-webhook-and-integration-steps)
- [Budibase S3 presigned URL authorization regression](https://junglewise.ai/threats/cve-2026-72859-budibase-s3-presigned-url-authorization-regression)
- [Budibase MySQL DESCRIBE backtick injection via multipleStatements](https://junglewise.ai/threats/cve-2026-73408-budibase-mysql-describe-backtick-injection-via-multiplestatements)
- [Budibase privilege escalation in public role assignment API](https://junglewise.ai/threats/cve-2026-73305-budibase-privilege-escalation-in-public-role-assignment-api)
