Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cloudreve/Cloudreve/v4
  4. ›
  5. CVE-2026-54560

CVE-2026-54560: Cloudreve: OAuth access tokens bypass scope enforcement due to missing client_id claim

July 20, 2026

Cloudreve’s OAuth access tokens can bypass OAuth scope enforcement.

This does not appear to be the intended design. The documentation describes OAuth client permissions/scopes, the API has an insufficient-scope error code, and the code comments say RequiredScopes(...) should verify scopes when a token has scopes, while skipping checks only for non-scoped session-based authentication.

However, OAuth access tokens are issued without the OAuth client_id claim. Later, the JWT verifier only loads scopes into the request context when claims.ClientID != "". Because the OAuth access token has no client_id, its scopes are not loaded, and RequiredScopes(...) treats the request like a non-scoped first-party/session token and skips scope checks.

As a result, a low-scope OAuth access token, for example one granted only openid, can call APIs requiring higher scopes such as file, share, workflow, user setting, WebDAV account, and potentially admin scopes when the authorizing user is an administrator.

References

  • github.com/advisories/GHSA-vgj4-345g-jcf8
  • github.com/cloudreve/cloudreve/commit/ed20843dc3df20a25fcaf6b538647e11c4d68d87
  • github.com/cloudreve/cloudreve/releases/tag/4.16.1
  • github.com/cloudreve/cloudreve/security/advisories/GHSA-vgj4-345g-jcf8
  • nvd.nist.gov/vuln/detail/CVE-2026-54560

Code Behaviors & Features

Detect and mitigate CVE-2026-54560 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0-20260114075425-bc6845bd742c before 4.0.0-20260606015557-ed20843dc3df

Fixed versions

  • 4.0.0-20260606015557-ed20843dc3df

Solution

Upgrade to version 4.0.0-20260606015557-ed20843dc3df or above.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/github.com/cloudreve/Cloudreve/v4/CVE-2026-54560.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 15 Aug 2026 00:23:21 +0000.