{"id":"CVE-2026-48147","published":"2026-05-27T17:14:17Z","modified":"2026-05-27T18:32:17Z","title":"Budibase: Unanchored Regex in `matchers.ts` Allows CSRF Bypass via Query String Injection in Budibase Worker","vendor":"Budibase","product":"budibase","tier":"tail","description":{"text":"Budibase is an open-source low-code platform. Prior to 3.35.4, the buildMatcherRegex() / matches() functions in packages/backend-core/src/middleware/matchers.ts route patterns are compiled into unanchored regular expressions and tested against ctx.request.url, which includes the full query string. The CSRF middleware in the Budibase Worker uses this matching system to decide whether to skip CSRF token validation. An unauthenticated attacker can forge state-changing cross-origin requests against any Worker API endpoint by injecting a public route pattern into the query string, causing the CSRF middleware to skip token validation entirely. This allows actions such as sending admin invites, modifying global configuration, and managing users without a valid CSRF token. This vulnerability is fixed in 3.35.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00115,"percentile":0.016,"provenance":"source"},"cwes":[{"id":"CWE-185","name":"Incorrect Regular Expression"},{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"references":[{"url":"https://github.com/Budibase/budibase/security/advisories/GHSA-wxq7-x3qp-vcr8","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.9,"factors":[{"name":"EPSS percentile","points":0.32},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"budibase","affectedVersions":[{"vendor":"Budibase","product":"budibase","versions":["< 3.35.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-27T18:32:11.870955Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@budibase/backend-core","vulnerableRanges":["<3.35.4"],"patched":["3.35.4"],"from":["GHSA-wxq7-x3qp-vcr8"],"provenance":"source"}],"summary":{"text":"The flaw is in the route-matching code of Budibase's backend-core package (matchers.ts), where route patterns are compiled into unanchored regular expressions and tested against the full request URL including the query string, which causes the Budibase Worker's CSRF middleware to wrongly skip token validation. An attacker with network access and no authentication can, by getting a victim to interact with a crafted cross-origin request, forge state-changing requests against Worker API endpoints, such as sending admin invites, modifying global configuration, or managing users.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:01Z"},"euvd":{"id":"EUVD-2026-32606","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-31818","published":"2026-04-03","fixed":"3.33.4","kev":false,"link":{"from":"CVE-2026-31818","to":"CVE-2026-48147","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@budibase/backend-core","fromFixed":"3.33.4","toFixed":"3.35.4","daysApart":54}]}},{"cve":"CVE-2026-48147","published":"2026-05-27","fixed":"3.35.4","kev":false},{"cve":"CVE-2026-42239","published":"2026-05-07","fixed":"3.35.10","kev":false},{"cve":"CVE-2026-46424","published":"2026-05-27","fixed":"3.38.2","kev":false},{"cve":"CVE-2026-54353","published":"2026-06-26","fixed":"3.39.9","kev":false}],"package":"npm:@budibase/backend-core"}}