{"id":"CVE-2026-45719","published":"2026-05-27T17:07:20Z","modified":"2026-05-27T18:36:23Z","title":"Budibase: CouchDB Reduce Injection via Unsanitized Calculation Parameter in V1 Views API","vendor":"Budibase","product":"budibase","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00424,"percentile":0.28422,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-363w-hvwh-w7m6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Budibase/budibase/releases/tag/3.38.1","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":5.68},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"budibase","affectedVersions":[{"vendor":"Budibase","product":"budibase","versions":["< 3.38.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-27T18:35:55.115910Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@budibase/server","vulnerableRanges":["<3.38.1"],"patched":["3.38.1"],"from":["GHSA-363w-hvwh-w7m6"],"provenance":"source"}],"summary":{"text":"Budibase, an open-source low-code platform, has a code injection flaw in its V1 Views API (POST /api/views), where the request body's calculation parameter is interpolated into a CouchDB reduce function without validation, even though an internal map of valid calculation types exists. An attacker with Builder-level privileges, reaching the API over the network, can inject arbitrary JavaScript that runs inside the CouchDB JavaScript engine when the view is queried, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:11Z"},"euvd":{"id":"EUVD-2026-32599","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-48148","published":"2026-05-27","fixed":"3.35.3","kev":false,"link":{"from":"CVE-2026-48148","to":"CVE-2026-45719","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@budibase/server","fromFixed":"3.35.3","toFixed":"3.38.1","daysApart":0}]}},{"cve":"CVE-2026-45715","published":"2026-05-27","fixed":"3.38.1","kev":false},{"cve":"CVE-2026-45717","published":"2026-05-27","fixed":"3.38.1","kev":false},{"cve":"CVE-2026-45719","published":"2026-05-27","fixed":"3.38.1","kev":false},{"cve":"CVE-2026-48146","published":"2026-05-27","fixed":"3.39.0","kev":false},{"cve":"CVE-2026-48150","published":"2026-05-27","fixed":"3.39.0","kev":false},{"cve":"CVE-2026-48151","published":"2026-05-27","fixed":"3.39.0","kev":false}],"package":"npm:@budibase/server"}}