Niedrig

NocoDB: OAuth Token Scope Not Enforced at ACL Layer Allows Scope Escalation

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

Summary

The OAuth token strategy attached oauth_scope and oauth_granted_resources to the request user, but the ACL middleware never consulted either. An OAuth token issued with a restricted scope (e.g. MCP-only) therefore inherited the full permissions of the underlying user across all routes; the granted_resources.base_id restriction was bypassed on org-level endpoints that don't populate req.context.base_id.

Details

In packages/nocodb/src/strategies/oauth-token.strategy.ts, the strategy set is_oauth_token, oauth_client_id, oauth_granted_resources, and oauth_scope on the user object, then mapped through to the user's existing roles / base_roles. The ACL middleware in extract-ids.middleware.ts honoured is_api_token via blockApiTokenAccess but had no equivalent gate for is_oauth_token or scope-string enforcement.

The base/workspace restriction logic short-circuited when req.context.base_id was unset (org-level routes), so an OAuth token scoped to one base could still call org-level endpoints as the underlying user.

The fix adds a path-prefix allowlist (['/mcp', '/api/v3/', '/auth/user/me']) enforced inside the strategy and a blockOAuthTokenAccess ACL flag for endpoints that should never accept OAuth tokens.

Impact

  • Scope escalation: tokens issued with a narrow scope received the underlying user's full role.
  • Resource boundary bypass: per-base restrictions did not apply to org-level routes.
  • Violates least-privilege expectation for third-party OAuth integrations.

Credit

This issue was reported by @ik0z.

Betroffene Software

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

PlattformPaketAnfällige VersionenBehoben in
npm-Paket nocodb <= 0.301.3 keine Korrektur

Verweise

CVSS-Wert 2/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:N/A:N
Schwäche (CWE)
CWE-863
Plattform
npm
Paket
nocodb
Veröffentlicht
21.05.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-m5qg-rvjq-727p - CC BY 4.0

Schwachstellenhistorie: nocodb

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 (54) im Archiv
Einträge insgesamt
54
Erste → letzte
06.2022 06.2026
Ohne Fix
13
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Hoch 7
  • Mittel 41
  • Niedrig 6

Veröffentlichungen pro Jahr

  1. 2022: 5
  2. 2023: 2
  3. 2024: 3
  4. 2025: 1
  5. 2026: 43
Schweregrad:
  1. Hoch CVE-2026-47387 < 2026.05.1 2026.05.1
  2. Hoch CVE-2026-47383 < 2026.05.1 2026.05.1
  3. NocoDB: OAuth Token Scope Not Enforced at ACL Layer Allows Scope Escalation dieser Eintrag
    Niedrig · 2.0 CVE-2026-46549 <= 0.301.3 keine Korrektur
  4. Hoch · 7.3 CVE-2023-49781 < 0.202.9 0.202.9
  5. Hoch · 8.8 CVE-2022-2064 < 0.91.9 0.91.9
  6. Hoch · 8.8 CVE-2022-2063 < 0.91.8 0.91.8
  7. Hoch · 7.5 CVE-2022-2062 < 0.91.7 0.91.7

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.