Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @budibase/server
  4. ›
  5. GHSA-qw6m-8fw2-2v64

GHSA-qw6m-8fw2-2v64: Budibase: NoSQL Injection via JSON Parameter Interpolation in MongoDB Query Execution

July 24, 2026

Budibase’s MongoDB query execution endpoint (POST /api/v2/queries/:queryId) is vulnerable to NoSQL injection through user-supplied query parameters. The enrichContext() function interpolates parameter values into JSON query templates using Handlebars with noEscaping: true, then parses the result with JSON.parse(). An attacker can inject JSON metacharacters (", {, }) into parameter values to alter the structure of MongoDB queries, bypassing intended filters to read, modify, or delete arbitrary documents.

References

  • github.com/Budibase/budibase/commit/2d6c1d17cff8a653adbb2f9003eda9de38c7670f
  • github.com/Budibase/budibase/pull/18907
  • github.com/Budibase/budibase/releases/tag/3.39.9
  • github.com/Budibase/budibase/security/advisories/GHSA-qw6m-8fw2-2v64
  • github.com/advisories/GHSA-qw6m-8fw2-2v64

Code Behaviors & Features

Detect and mitigate GHSA-qw6m-8fw2-2v64 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 3.38.1

Solution

Unfortunately, there is no solution available yet.

Impact 8.3 HIGH

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

Learn more about CVSS

Weakness

  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Source file

npm/@budibase/server/GHSA-qw6m-8fw2-2v64.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:17:57 +0000.