# CVE-2026-48147: Budibase: Unanchored Regex in `matchers.ts` Allows CSRF Bypass via Query String Injection in Budibase Worker

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-27T17:14:17.039Z
- Modified: 2026-09-10T03:50:50.884Z
- Also known as: GHSA-wxq7-x3qp-vcr8
- Weaknesses: CWE-185, CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Budibase budibase: < 3.35.4
- @budibase/backend-core (npm): before 3.35.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/Budibase/budibase/security/advisories/GHSA-wxq7-x3qp-vcr8> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48147> (advisory)
- <https://github.com/Budibase/budibase> (package)

## Sources

- CVE List: [CVE-2026-48147](https://www.cve.org/CVERecord?id=CVE-2026-48147), CVE Terms of Use, modified 2026-05-27
- GitHub Advisory Database: [GHSA-wxq7-x3qp-vcr8](https://github.com/advisories/GHSA-wxq7-x3qp-vcr8), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48147](https://nvd.nist.gov/vuln/detail/CVE-2026-48147), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-48147 · Whole record: https://cve.day/CVE-2026-48147.json · Rebuilt by cve.day 2026-11-25T22:59:22.640Z
