---
id: CVE-2026-55502
title: Cloudreve is a self-hosted file management and sharing system
summary: >-
  Cloudreve is a self-hosted file management and sharing system. Prior to
  4.17.0, POST /api/v4/admin/policy/oauth/signin requires only Admin.Read even
  though GetOauthRedirectService persists caller-supplied OneDrive secret and
  app_id value…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L'
cwe:
  - CWE-863
vendor: cloudreve
product: github.com/cloudreve/Cloudreve/v4
affected:
  - github.com/cloudreve/Cloudreve/v4 < 4.0.0-20260613030954-9e9fb43e7288
  - github.com/cloudreve/Cloudreve/v3 <= 3.0.0-20250225100611-da4e44b77af4
patched:
  - github.com/cloudreve/Cloudreve/v4 4.17.0
published: '2026-07-31'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:51:43.490'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-55502'
references:
  - url: >-
      https://github.com/cloudreve/cloudreve/security/advisories/GHSA-hq88-5x99-x3gf
    label: security-advisories@github.com
  - url: >-
      https://github.com/cloudreve/cloudreve/security/advisories/GHSA-hq88-5x99-x3gf
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://github.com/cloudreve/cloudreve/commit/9e9fb43e7288924cca052e5fdbb70d5365ef1ede
  - url: 'https://github.com/cloudreve/cloudreve/releases/tag/4.17.0'
  - url: 'https://github.com/advisories/GHSA-hq88-5x99-x3gf'
tags:
  - nvd
  - ghsa
  - go
epss: 0.00338
epssPercentile: 0.24588
aliases:
  - GHSA-hq88-5x99-x3gf
ecosystem: go
ingestedAt: '2026-07-24T21:39:14.882Z'
---

## Overview

Cloudreve is a self-hosted file management and sharing system. Prior to 4.17.0, POST /api/v4/admin/policy/oauth/signin requires only Admin.Read even though GetOauthRedirectService persists caller-supplied OneDrive secret and app_id values, allowing an OAuth token without Admin.Write to modify storage policy credentials. The route is inside the admin group that requires Admin.Read, but it does not add the local Admin.Write guard used by sibling policy mutation routes. Its handler persists attacker-supplied secret and app_id values into the selected OneDrive storage policy before returning an OAuth URL. This issue is fixed in version 4.17.0.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-55502)

Affected packages:

- `github.com/cloudreve/Cloudreve/v4 < 4.0.0-20260613030954-9e9fb43e7288`
- `github.com/cloudreve/Cloudreve/v3 <= 3.0.0-20250225100611-da4e44b77af4`

Patched in:

- `github.com/cloudreve/Cloudreve/v4 4.17.0`

Source: https://github.com/advisories/GHSA-hq88-5x99-x3gf
