---
id: CVE-2026-103504
title: >-
  Changing an organization team's permission through the API with only the
  `permission` field did not rebuild the team's per-unit access, and the
  requested level was not applied as a cap
summary: >-
  Changing an organization team's permission through the API with only the
  `permission` field did not rebuild the team's per-unit access, and the
  requested level was not applied as a cap. After an organization owner demoted
  a team, for exa…
severity: none
cwe:
  - CWE-272
vendor: Gitea
product: gitea.dev
affected:
  - gitea.dev <= 1.27.3
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T20:17:14.487'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-103504'
references:
  - url: 'https://blog.gitea.com/release-of-28.0.0/'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/pull/38938'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v28.0.0'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
  - url: 'https://github.com/go-gitea/gitea/security/advisories/GHSA-x8c3-3rp8-2j46'
    label: 88ee5874-cf24-4952-aea0-31affedb7ff2
tags:
  - nvd
  - cve.org
ingestedAt: '2026-10-06T20:16:42.498Z'
---

## Overview

Changing an organization team's permission through the API with only the `permission` field did not rebuild the team's per-unit access, and the requested level was not applied as a cap. After an organization owner demoted a team, for example from admin to read, the team's members kept their previous unit permissions, including write access to the team's repositories. The web form was not affected.

## Remediation

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