Description
Budibase before 4.0.0 contains a server-side template injection vulnerability that allows authenticated users with table read permission to execute JavaScript by injecting Handlebars js helpers into row search query values. Attackers can submit base64-encoded JavaScript through the search endpoint, which enrichSearchContext() runs in an isolated-vm sandbox, to read OAuth2 access and refresh tokens of SSO users or cause denial of service.
Affected products and versions
budibase server< 4.0.0Fixed in: 4.0.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- Low impact
- Availability
- Low impact
Weakness type (CWE)
- CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
References
- github.com/Budibase/budibase/security/advisories/GHSA-w7m4-jhq6-jmrg vendor advisory
- www.vulncheck.com/advisories/budibase-before-4.0.0-ssti-via-enrichsearchcontext-in-row-sea
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.