Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @budibase/server
  4. ›
  5. GHSA-pmpg-2mxq-6xwr

GHSA-pmpg-2mxq-6xwr: Budibase: NoSQL injection in MongoDB integration: collection dump, $where JS exec, cross-collection pivot, arbitrary update/delete

July 24, 2026

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.

References

  • github.com/Budibase/budibase/commit/dd8c0654b35cd89ce3645f2355f4bf2ff9a5dd80
  • github.com/Budibase/budibase/pull/18907
  • github.com/Budibase/budibase/releases/tag/3.39.9
  • github.com/Budibase/budibase/security/advisories/GHSA-pmpg-2mxq-6xwr
  • github.com/advisories/GHSA-pmpg-2mxq-6xwr

Code Behaviors & Features

Detect and mitigate GHSA-pmpg-2mxq-6xwr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 3.38.1

Solution

Unfortunately, there is no solution available yet.

Impact 7.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

npm/@budibase/server/GHSA-pmpg-2mxq-6xwr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:34 +0000.