Servers and applications
GHSA-pmpg-2mxq-6xwr
NoSQL injection in MongoDB integration: collection dump, $where JS exec, cross-collection pivot, arbitrary update/delete
- Severity
- High 7.1
- Published
- 22 Jul 2026
- Last changed
- 22 Jul 2026
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 3.40.0
- Weakness
- SQL injection (CWE-89)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N- Sources
- Project advisories (GitHub)
Description
An end-user injection in Budibase's MongoDB datasource lets any BASIC app user bypass the builder's query-level access controls. Builders scope MongoDB reads per-user with bindings like {"email": "{{ currentUser.email }}"} so each app user only sees their own rows. Because the binding is handlebars-enriched into the query JSON with noEscaping: true and then JSON.parsed, Bob (a BASIC user) overrides the builder's filter with a MongoDB operator and reads every document the connection can touch. SQL datasources are parameterized through interpolateSQL(); the MongoDB path has no equivalent, so the scoping pattern Budibase's own docs show is unsafe.
packages/server/src/sdk/workspace/queries/queries.ts:105-125 enriches every string field of the query with handlebars, then parses the enriched json field:
noEscaping: true turns {{name}} into {{{name}}}, which Handlebars renders without HTML-escaping. Any " or } the attacker supplies lands verbatim in the enriched string.
Affected software
| Software | Affected versions |
|---|---|
BudibaseServers and applications · github:budibase/budibase |
|
About Budibase
low-code development platform
- 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
Website Source code Docker image
Vulnerabilities in Budibase
- In our list
- 124
- Published in the last 12 months
- 121
- Critical, last 12 months
- 27
- High, last 12 months
- 76
- Known exploited
- 0
- GHSA-8wqw-xg9x-89h8Public API View Row Search Bypasses Per-View Authorization via Resource ID Parameter MismatchMedium 6.5 12 Nov 2026
- GHSA-4xqp-vfh8-4fv7Budibase filesystem oracle and conditional directory deletion via body.file.pathMedium 5.4 12 Nov 2026
- GHSA-m2mm-7xvw-9623SSRF blacklist bypass: IPv6 unspecified address :: omitted from outbound-fetch default deny list reaches loopback servicesMedium 5.4 12 Nov 2026
- GHSA-jm85-crv2-88pxUnverified-email OIDC/SSO account linking takes over password-less global Builder (isAccountLinkable allowlist omits builder)Critical 9.8 10 Nov 2026
- GHSA-gvxv-2hpp-8fwvBudibase: View Row-Filter Security Boundary Bypass via Single-Row Read and Attachment EndpointsHigh 10 Nov 2026
- GHSA-f337-5wfg-hxhrMongoDB connectionString filesystem oracle — incomplete fix of GHSA-ppr4-5f46-j9c6High 10 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-pmpg-2mxq-6xwr
- github.com https://github.com/Budibase/budibase/security/advisories/GHSA-pmpg-2mxq-6xwr