CVE-2026-48152
Budibase: Basic app users can exfiltrate stored REST datasource auth by rewriting datasource base URL
Budibase is an open-source low-code platform. Prior to 3.39.0, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks. The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener. This vulnerability is fixed in 3.39.0.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.1
Budibase: Basic app users can exfiltrate stored REST datasource auth by rewriting datasource base URL
Budibase is an open-source low-code platform. Prior to 3.39.0, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks. The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener. This vulnerability is fixed in 3.39.0.
- Record
CVE-2026-48152- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-863
- Updated
- 2026-11-02
EUVDEUVD-2026-32588
8.1
Budibase is an open-source low-code platform. Prior to 3.39.0, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks. The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener. This vulnerability is fixed in 3.39.0.
- Record
EUVD-2026-32588- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-3gp5-q4jw-3v94
8.1
Budibase: Basic app users can exfiltrate stored REST datasource auth by rewriting datasource base URL
Summary
Budibase stores external REST datasource credentials server-side and documents that database credentials are applied server-side and are not exposed in the UI. The REST datasource implementation redacts stored Basic/Bearer/OAuth2 auth secrets before returning datasource data to clients. However, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks.
The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener.
Source evidence
packages/server/src/api/routes/datasource.ts: datasource list/create/delete routes are onbuilderRoutes, butGET /api/datasources/:datasourceIdandPUT /api/datasources/:datasourceIdare inauthorizedRoutesguarded only byPermissionType.TABLEandPermissionLevel.READ.packages/server/src/api/routes/datasource.ts: the:datasourceIdroutes do not attach datasource-specific resource authorization.packages/backend-core/src/security/roles.ts: built-in Basic user maps toBuiltinPermissionID.WRITE.packages/backend-core/src/security/permissions.ts:WRITEgrantsREAD/EXECUTElevels and includesQUERY WRITEandTABLE WRITE.packages/server/src/api/controllers/datasource.ts:datasourceController.updatereads the stored datasource, mergesctx.request.bodyinto it, writes the result back, and returns a redacted copy.packages/server/src/sdk/workspace/datasources/datasources.ts:removeSecrets()redacts REST Basic/Bearer/OAuth2 secrets toPASSWORD_REPLACEMENT.packages/server/src/sdk/workspace/datasources/datasources.ts:mergeConfigs()restores the old stored auth-secret field when the update body sends the redaction placeholder for the same auth config.packages/server/src/integrations/rest.ts: relative REST query paths are prefixed with datasourceconfig.url.packages/server/src/integrations/rest.ts: REST execution resolves the selected auth config and applies the resulting auth headers to the outbound request.packages/server/src/api/routes/query.ts: saved query executionPOST /api/v2/queries/:queryIdis guarded byQUERY WRITE, which the Basic role has through theWRITEpermission set.
Reproduction outline
No production systems were tested. This is source-backed and has a local static verifier plus a proof helper for an already-running authorized instance.
- Deploy a current Budibase instance.
- As a builder/admin, create and publish an app.
- As the builder/admin, create a REST datasource with:
config.urlset to a benign legitimate API base URL.- a stored REST auth config containing a sentinel secret, such as a Bearer token
BUDIBASE_REST_TOKEN_SENTINEL.
- As the builder/admin, create a saved REST query that uses a relative path and that auth config.
- Add a non-builder Basic app user.
- As the Basic user, confirm negative controls:
- Builder-only datasource list/create/preview routes are denied.
- The user is not a builder/admin.
- As the Basic user, call
GET /api/datasources/{datasourceId}. The response returns the datasource and redacted auth placeholders, not the raw secret. - As the Basic user, call
PUT /api/datasources/{datasourceId}with the same redacted datasource body but with…
- Record
GHSA-3gp5-q4jw-3v94- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-863
- Updated
- 2026-11-02
NVD
8.1
Budibase is an open-source low-code platform. Prior to 3.39.0, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks. The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener. This vulnerability is fixed in 3.39.0.
- Record
CVE-2026-48152- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-863
- Updated
- 2026-11-02
OSV
8.1
Budibase: Basic app users can exfiltrate stored REST datasource auth by rewriting datasource base URL
Budibase is an open-source low-code platform. Prior to 3.39.0, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks. The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener. This vulnerability is fixed in 3.39.0.
- Record
CVE-2026-48152- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-863
- Updated
- 2026-11-02
OSVGHSA-3gp5-q4jw-3v94
8.1
Budibase: Basic app users can exfiltrate stored REST datasource auth by rewriting datasource base URL
Summary
Budibase stores external REST datasource credentials server-side and documents that database credentials are applied server-side and are not exposed in the UI. The REST datasource implementation redacts stored Basic/Bearer/OAuth2 auth secrets before returning datasource data to clients. However, the single-datasource GET and PUT routes are guarded by generic TABLE READ, not by Builder/Admin permission or datasource-specific ownership/resource checks.
The built-in Basic app user role maps to the WRITE permission set, which includes table read/write and query write. A Basic user can therefore read an existing REST datasource, receive redacted authConfigs values, submit an update that changes only config.url while keeping the redacted placeholders, and trigger an existing saved relative-path REST query. During update, mergeConfigs() restores the old stored secret when it sees the redaction placeholder. During query execution, Budibase prefixes the attacker-controlled datasource config.url to the relative query path and applies the resolved stored auth headers. The result is server-side disclosure of the builder-configured REST Authorization secret to an attacker-controlled listener.
Source evidence
packages/server/src/api/routes/datasource.ts: datasource list/create/delete routes are onbuilderRoutes, butGET /api/datasources/:datasourceIdandPUT /api/datasources/:datasourceIdare inauthorizedRoutesguarded only byPermissionType.TABLEandPermissionLevel.READ.packages/server/src/api/routes/datasource.ts: the:datasourceIdroutes do not attach datasource-specific resource authorization.packages/backend-core/src/security/roles.ts: built-in Basic user maps toBuiltinPermissionID.WRITE.packages/backend-core/src/security/permissions.ts:WRITEgrantsREAD/EXECUTElevels and includesQUERY WRITEandTABLE WRITE.packages/server/src/api/controllers/datasource.ts:datasourceController.updatereads the stored datasource, mergesctx.request.bodyinto it, writes the result back, and returns a redacted copy.packages/server/src/sdk/workspace/datasources/datasources.ts:removeSecrets()redacts REST Basic/Bearer/OAuth2 secrets toPASSWORD_REPLACEMENT.packages/server/src/sdk/workspace/datasources/datasources.ts:mergeConfigs()restores the old stored auth-secret field when the update body sends the redaction placeholder for the same auth config.packages/server/src/integrations/rest.ts: relative REST query paths are prefixed with datasourceconfig.url.packages/server/src/integrations/rest.ts: REST execution resolves the selected auth config and applies the resulting auth headers to the outbound request.packages/server/src/api/routes/query.ts: saved query executionPOST /api/v2/queries/:queryIdis guarded byQUERY WRITE, which the Basic role has through theWRITEpermission set.
Reproduction outline
No production systems were tested. This is source-backed and has a local static verifier plus a proof helper for an already-running authorized instance.
- Deploy a current Budibase instance.
- As a builder/admin, create and publish an app.
- As the builder/admin, create a REST datasource with:
config.urlset to a benign legitimate API base URL.- a stored REST auth config containing a sentinel secret, such as a Bearer token
BUDIBASE_REST_TOKEN_SENTINEL.
- As the builder/admin, create a saved REST query that uses a relative path and that auth config.
- Add a non-builder Basic app user.
- As the Basic user, confirm negative controls:
- Builder-only datasource list/create/preview routes are denied.
- The user is not a builder/admin.
- As the Basic user, call
GET /api/datasources/{datasourceId}. The response returns the datasource and redacted auth placeholders, not the raw secret. - As the Basic user, call
PUT /api/datasources/{datasourceId}with the same redacted datasource body but with…
- Record
GHSA-3gp5-q4jw-3v94- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N - Weakness
- CWE-863
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
@budibase/servernpm |
before 3.39.0 | 3.39.0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-48152 is a high vulnerability (CVSS 8.1) in Budibase, published May 27, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.26%, the 17th percentile. Fixed in @budibase/server 3.39.0.
References
Left out here: the rest of 2 source descriptions. The JSON record has them.