INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2026-70478

Flowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected service

CVE-2026-70478 · 2026-08-04 critical

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Information exposure
Also involves
Sensitive Data Disclosure
Affected
flowise (npm)
Gets past
Authentication check
CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

An unauthenticated route returns freshly refreshed OAuth access tokens, so anyone holding a credential ID can take them and use the victim's connected services. (Our summary, written by a model. The source text is below.)

Details

Summary

The OAuth2 token refresh endpoint (POST /api/v1/oauth2-credential/refresh/:credentialId) is in WHITELIST_URLS, meaning it requires no authentication. It decrypts the stored credential (containing clientId, clientSecret, refresh_token), sends a refresh request to the configured OAuth provider, and returns the new access_token directly in the response body.

Root Cause

// packages/server/src/routes/oauth2/index.ts:393-402
res.json({
    success: true,
    message: 'OAuth2 token refreshed successfully',
    credentialId: credential.id,
    tokenInfo: {
        ...tokenData,  // ← includes access_token!
        has_new_refresh_token: !!tokenData.refresh_token,
        expires_at: updatedCredentialData.expires_at
    }
})

Whitelist entry at packages/server/src/utils/constants.ts:40.

Attack Chain

Docker Validation

POST /api/v1/oauth2-credential/refresh/fake-uuid returns {"message":"Credential not found"} (not 401 Unauthorized), proving the endpoint processes the request without authentication.

Impact

Suggested Fix

Remove the refresh endpoint from WHITELIST_URLS and require authentication:

// Remove from WHITELIST_URLS in constants.ts
// Add authentication check in the route handler

---

Credits

References

Source: GitHub Advisory Database, used under CC BY 4.0.