{"id":"CVE-2026-45719","state":"PUBLISHED","title":"Budibase: CouchDB Reduce Injection via Unsanitized Calculation Parameter in V1 Views API","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.","publishedAt":"2026-05-27T17:07:20.961Z","updatedAt":"2026-05-27T18:36:23.178Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["Budibase budibase"],"affected":[{"vendor":"Budibase","product":"budibase","versions":[{"version":"< 3.38.1","status":"affected"}]}],"references":["https://github.com/Budibase/budibase/security/advisories/GHSA-363w-hvwh-w7m6","https://github.com/Budibase/budibase/releases/tag/3.38.1"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45719.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45719","state":"PUBLISHED","datePublished":"2026-05-27T17:07:20.961Z","dateUpdated":"2026-05-27T18:36:23.178Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-13T05:51:48.666Z"},"containers":{"cna":{"title":"Budibase: CouchDB Reduce Injection via Unsanitized Calculation Parameter in V1 Views API","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Budibase","product":"budibase","versions":[{"version":"< 3.38.1","status":"affected"}]}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-363w-hvwh-w7m6","name":"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","name":"https://github.com/Budibase/budibase/releases/tag/3.38.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-05-27T17:07:20.961Z"},"source":{"advisory":"GHSA-363w-hvwh-w7m6","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-363w-hvwh-w7m6","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-27T18:35:55.115910Z","id":"CVE-2026-45719","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-05-27T18:36:23.178Z"}}]}}}