Junglewise Threat Intelligence

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

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

Technologies: @budibase/server (npm), Budibase/Server. Vendors: npm, Budibase.

Executive brief

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.

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

Timeline

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

References

Related threats