{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.27.3"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "15b8a5805adf57c5189602008d38cccfd3c795e0"
            }
          ],
          "repo": "https://github.com/go-gitea/gitea",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-x8c3-3rp8-2j46"
  ],
  "database_specific": {
    "cna_assigner": "Gitea",
    "cwe_ids": [
      "CWE-272"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103504.json"
  },
  "details": "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.",
  "id": "CVE-2026-103504",
  "modified": "2026-10-09T02:30:26.211068870Z",
  "published": "2026-10-06T19:24:26.369Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://blog.gitea.com/release-of-28.0.0/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103504.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-gitea/gitea/releases/tag/v28.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-x8c3-3rp8-2j46"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-103504"
    },
    {
      "type": "FIX",
      "url": "https://github.com/go-gitea/gitea/pull/38938"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Gitea API team demotion not applied to unit permissions"
}