Server: Budibase: NoSQL injection in MongoDB integration: collection dump, $where JS exec, cross-collection pivot, arbitrary update/delete
Affects @budibase/serverSource GCVE Database
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:NWhat to do
AI-suggested
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using MongoDB datasources with untrusted user input in Budibase or restrict BASIC user permissions. Builders should not rely on handlebars-enriched JSON with no escaping for query filtering. Consider implementing server-side query parameterization or input validation to prevent injection. Monitor vendor channels for patches or official fixes.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@budibase/server | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Budibase server versions up to 3.38.1 contain a NoSQL injection vulnerability in the MongoDB integration. This flaw allows BASIC app users to bypass query-level access controls intended to restrict data visibility per user. The vulnerability arises because user input is handlebars-enriched into MongoDB query JSON with no escaping, then parsed and executed without sanitization. Attackers can inject MongoDB operators to manipulate queries and retrieve or modify unauthorized documents.
Weaknesses
References
- github.com/Budibase/budibase/security/advisories/GHSA-pmpg-2mxq-6xwr (opens in a new tab)
- github.com/Budibase/budibase/pull/18907 (opens in a new tab)
- github.com/Budibase/budibase/commit/dd8c0654b35cd89ce3645f2355f4bf2ff9a5dd80 (opens in a new tab)
- github.com/Budibase/budibase (opens in a new tab)
- github.com/Budibase/budibase/releases/tag/3.39.9 (opens in a new tab)