Kritisch

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

  • Veröffentlicht: 04.08.2026
  • Aktualisiert: 11.10.2026 10:22

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

ts
// 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

  1. Attacker obtains a credential ID (via Finding 2 / public chatflow leak, or enumeration)
  2. Attacker calls POST /api/v1/oauth2-credential/refresh/:credentialId (no auth required)
  3. Server decrypts credential, sends refresh request to OAuth provider with user's client_secret
  4. Server returns the new access_token in the response to the attacker
  5. Attacker uses the token to access the victim's connected service (Google, Microsoft, etc.)

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

  • OAuth2 access token theft for any connected service
  • Full access to the victim's third-party accounts (Google, Microsoft, GitHub, etc.)
  • Client secret transmitted to OAuth provider during refresh
  • Can also be used for DoS by exhausting refresh token quota

Suggested Fix

Remove the refresh endpoint from WHITELIST_URLS and require authentication:

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

Credits

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket flowise < 3.1.3 3.1.3

Verweise

CVSS-Wert -
CVSS-Vektor
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
Schwäche (CWE)
CWE-200
Plattform
npm
Paket
flowise
Veröffentlicht
04.08.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-qgvm-j2hm-6m38 - CC BY 4.0

Schwachstellenhistorie: flowise

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (114) im Archiv
Einträge insgesamt
114
Erste → letzte
04.2024 10.2026
Ohne Fix
16
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 28
  • Hoch 62
  • Mittel 24

Veröffentlichungen pro Jahr

  1. 2024: 11
  2. 2025: 22
  3. 2026: 81
Schweregrad:
  1. Flowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected service dieser Eintrag
    Kritisch CVE-2026-70478 < 3.1.3 3.1.3
  2. Kritisch CVE-2026-69259 < 3.1.3 3.1.3
  3. Kritisch CVE-2026-69256 < 3.1.3 3.1.3
  4. Kritisch CVE-2026-69253 < 3.1.3 3.1.3
  5. Kritisch CVE-2026-69251 < 3.1.3 3.1.3
  6. Hoch · 8.8 CVE-2026-46444 < 3.1.2 3.1.2
  7. Hoch CVE-2026-46443 < 3.1.2 3.1.2
  8. Hoch CVE-2026-56274 < 3.1.2 3.1.2
  9. Hoch · 7.5 CVE-2026-46440 < 3.1.2 3.1.2
  10. Hoch · 9.8 CVE-2026-41276 < 3.1.0 3.1.0
  11. Hoch CVE-2026-41274 < 3.1.0 3.1.0
  12. Hoch · 7.5 CVE-2026-41275 < 3.1.0 3.1.0
  13. Hoch · 7.1 CVE-2026-41271 < 3.1.0 3.1.0
  14. Hoch · 7.1 CVE-2026-41272 < 3.1.0 3.1.0
  15. Hoch · 7.1 CVE-2026-41269 < 3.1.0 3.1.0
  16. Hoch · 7.7 CVE-2026-41268 < 3.1.0 3.1.0
  17. Hoch · 7.5 CVE-2026-41266 < 3.1.0 3.1.0
  18. Kritisch · 8.8 CVE-2026-41137 < 3.1.0 3.1.0
  19. Kritisch · 9.9 CVE-2026-40933 < 3.1.0 3.1.0
  20. Hoch CVE-2026-30824 < 3.0.13 3.0.13
  21. Hoch · 7.7 CVE-2026-30822 < 3.0.13 3.0.13
  22. Hoch CVE-2026-30821 < 3.0.13 3.0.13
  23. Kritisch · 9.9 CVE-2025-61913 < 3.0.8, < 3.0.8 3.0.8
  24. Hoch · 8.3 CVE-2025-61687 >= 3.0.7, < 3.0.8 3.0.8
  25. Kritisch · 9.8 CVE-2025-55346 <= 2.2.7-patch.1 keine Korrektur
  26. Hoch CVE-2025-71336 >= 2.2.7-patch.1, < 3.0.6 3.0.6
  27. Kritisch · 9.8 CVE-2025-71334 >= 2.2.8, < 3.0.6 3.0.6
  28. Kritisch · 9.1 CVE-2025-71324 >= 3.0.5, < 3.0.6 3.0.6
  29. Kritisch · 10.0 CVE-2025-59528 >= 3.0.5, < 3.0.6 3.0.6
  30. Hoch · 7.5 CVE-2025-59527 >= 3.0.5, < 3.0.6 3.0.6
  31. Kritisch · 9.1 CVE-2025-57164 >= 3.0.5, < 3.0.6 3.0.6
  32. Kritisch · 9.8 CVE-2025-8943 <= 3.0.5 keine Korrektur
  33. Kritisch · 10.0 CVE-2025-71338 <= 2.2.7 keine Korrektur
  34. Kritisch CVE-2025-71333 <= 2.2.7 keine Korrektur
  35. Hoch CVE-2025-26319 <= 2.2.6 keine Korrektur
  36. Hoch CVE-2024-58351 < 2.1.4 2.1.4
  37. Hoch · 7.5 CVE-2024-8182 <= 1.8.2 keine Korrektur
  38. Hoch · 7.3 CVE-2024-8181 <= 1.8.2 keine Korrektur
  39. Hoch · 7.5 CVE-2024-36421 <= 1.4.3 keine Korrektur
  40. Hoch · 7.5 CVE-2024-36420 <= 1.4.3 keine Korrektur
  41. Hoch · 7.6 CVE-2024-31621 < 1.8.1 1.8.1

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.