p PatchFirst

CVE-2026-70396

CVE-2026-70396 · Gitea organization repository creation token scope bypass

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Gitea's organization repository-creation API requires write:organization but omits the write:repository token scope enforced by other repository-creation routes. A personal access token or OAuth application token without repository-write scope can therefore create organization-owned repositories if the authorizing user has permission to do so. This bypasses the token's delegated scope boundary while remaining subject to the user's organization permissions.

CVSS 5.4 · Medium · EPSS 0.4%

Published
Updated

Affected products and versions

  • gitea

    Versions
    • ≥ 0, ≤ 1.27.2: Affected (semver)

    No fix published

Original sources

Check your server →