{
  "id": "CVE-2026-118395",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-118395",
  "published_at": "2026-11-01T09:48:51.036Z",
  "title": "Gitea public-only token bypass in repository and organization creation",
  "vendor": "Gitea",
  "product": "Gitea",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Gitea 1.27.3 stopped personal access tokens restricted to public resources (`public-only`) from creating repositories through `POST /api/v1/user/repos` and `POST /api/v1/repos/migrate`, but `POST /api/v1/org/{org}/repos`, `POST /api/v1/orgs/{org}/repos`, `POST /api/v1/orgs` and `POST /api/v1/repos/{owner}/{repo}/generate` still accepted such tokens. A holder of a public-only token with the needed write scopes could create private repositories in organizations where the token's owner may create repositories, create private organizations, and generate private repositories from templates. The token still could not read the private repositories it created.",
  "cwe": "CWE-284",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Gitea",
        "product": "Gitea",
        "ranges": [
          "\u003c 28.3.0"
        ],
        "fixed_in": [
          "28.3.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Gitea to 28.3.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/go-gitea/gitea/pull/39690"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/go-gitea/gitea/pull/39853"
      },
      {
        "kind": "Release notes",
        "url": "https://blog.gitea.com/release-of-28.3.0/"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/go-gitea/gitea/releases/tag/v28.3.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
