Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Server: Budibase: SSO OAuth2 Token Leakage via User Metadata Endpoints to Power-Role Users

0
Medium
Published: 07/24/2026 (07/24/2026, 21:14:31 UTC)
Source: GCVE Database
Product: @budibase/server

Description

Budibase server versions prior to 3.39.25 expose OAuth2 access and refresh tokens of SSO-authenticated users via user metadata endpoints to any user with POWER role or higher. These endpoints do not sanitize sensitive fields, leaking identity provider credentials and other authorization details. This allows POWER users to retrieve tokens that could be used to access external identity provider resources as the victim user. The vulnerability is due to missing removal of sensitive OAuth2 fields in user metadata responses.

CVSS v3.1

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Affected software

npmghsa
@budibase/server
Affected versions
<3.39.25

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 23:57:48 UTC

Technical Analysis

The vulnerability in @budibase/server affects versions before 3.39.25. The `/api/users/metadata` and `/api/users/metadata/:id` endpoints return full global user profiles to users with POWER role or above. For users authenticated via SSO (OIDC, Google), the OAuth2 tokens (`accessToken` and `refreshToken`) are stored in the global CouchDB user document but are not stripped from the API responses. The endpoints only remove `password` and `roles` fields but leave the `oauth2` field intact. This results in leakage of sensitive OAuth2 tokens to unauthorized users with POWER role, enabling potential misuse of identity provider credentials. The recommended fix involves explicitly deleting the `oauth2` and other SSO-related sensitive fields in the user processing function and adding defense-in-depth stripping in the raw user fetch function.

Potential Impact

Users with POWER role in any Budibase app can access all SSO users' OAuth2 access and refresh tokens via the user metadata endpoints. This exposure allows unauthorized access to external identity provider resources (e.g., Google Workspace, Azure AD, Okta) as the victim user. Refresh tokens enable indefinite renewal of access, extending the window of compromise. Additionally, leakage of admin, builder, tenantId, ssoId, and userGroups fields reveals the full authorization topology of the instance, potentially aiding further attacks.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The recommended fix is to modify the `processUser()` function to delete the `oauth2` and other SSO-related sensitive fields before returning user metadata. Additionally, the `getRawGlobalUsers()` function should also strip the `oauth2` field for defense in depth. Until a patch is available, restrict POWER role assignments to trusted users only and monitor for suspicious access patterns to user metadata endpoints.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-fcrw-f7gg-6g9f
Osv Schema Version
1.4.0
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a6542309c2644c7f808a75c

Added to database: 07/25/2026, 23:09:36 UTC

Last enriched: 07/25/2026, 23:57:48 UTC

Last updated: 07/26/2026, 00:20:46 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses