CVE-2026-45719

Budibase: CouchDB Reduce Injection via Unsanitized Calculation Parameter in V1 Views API

Published May 27, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Budibase is an open-source low-code platform. Prior to 3.38.1, the V1 Views API (POST /api/views) accepts a calculation parameter from the request body that is interpolated directly into a CouchDB reduce function definition without validation. Although an internal SCHEMA_MAP object defines the valid calculation types (sum, count, stats), no actual validation is performed against this map before the value is used in string interpolation. A user with Builder permissions can inject arbitrary JavaScript code that will be executed within the CouchDB JavaScript engine when the view is queried. This vulnerability is fixed in 3.38.1.

Analysis

AI-generated

Technical impact

The vulnerability arises because Budibase’s V1 Views API naively interpolates a calculation parameter into a CouchDB reduce function without validating it against the defined schema map. This lack of validation permits a malicious payload that is treated as JavaScript code by the CouchDB engine. An attacker who can send a POST to /api/views with a crafted calculation value can cause arbitrary JavaScript execution inside the database on any query of that view, leading to full compromise of the database instance. The flaw is a classic injection flaw (CWE‑94).

Affected Systems

Budibase, the open‑source low‑code platform, is affected in all releases prior to 3.38.1. No further version details are supplied beyond the stated fixed release. Users running older Budibase installations must verify that the calculation parameter is no longer interpolated directly into the reduce function.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity. The EPSS score is not available, so the current exploitation likelihood cannot be quantified from the data. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a user with Builder permissions to construct a malicious POST to the Views API; therefore the attack vector is a legitimate API call within an authenticated session. Because the flaw is a code injection into the database’s JavaScript environment, any successful exploitation would grant an attacker complete control over the database and potentially the host. Stakeholders should treat this as a high‑risk situation where an internal attacker could compromise system integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Budibase to release 3.38.1 or later where the calculation parameter is properly validated and the reduce function definition is no longer susceptible to injection.
  • If an upgrade is not immediately possible, restrict Builder-level permissions so that only trusted users can execute POST /api/views requests, effectively reducing the attack surface.
  • As a temporary workaround, manually modify the application’s request handling to filter or whitelist the calculation parameter before it is used in the reduce function definition, ensuring only the allowed values (sum, count, stats) are accepted.

Generated by OpenCVE AI on May 27, 2026 at 19:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-363w-hvwh-w7m6 Budibase: CouchDB Reduce Injection via Unsanitized Calculation Parameter in V1 Views API
History
Type Values Removed Values Added
First Time appeared Budibase
Budibase budibase
Vendors & Products Budibase
Budibase budibase
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Budibase is an open-source low-code platform. Prior to 3.38.1, the V1 Views API (POST /api/views) accepts a calculation parameter from the request body that is interpolated directly into a CouchDB reduce function definition without validation. Although an internal SCHEMA_MAP object defines the valid calculation types (sum, count, stats), no actual validation is performed against this map before the value is used in string interpolation. A user with Builder permissions can inject arbitrary JavaScript code that will be executed within the CouchDB JavaScript engine when the view is queried. This vulnerability is fixed in 3.38.1.
Title Budibase: CouchDB Reduce Injection via Unsanitized Calculation Parameter in V1 Views API
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 27, 2026, 6:36 PM
Reserved
May 13, 2026, 5:51 AM
Status
Deferred
Published
May 27, 2026, 6:16 PM
Modified
Jun 17, 2026, 10:52 AM