{
  "id": "CVE-2026-28699",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-28699",
  "published_at": "2026-07-03T20:19:38.663Z",
  "title": "Gitea Basic Auth bypasses OAuth2 access token scopes",
  "vendor": "Gitea",
  "product": "Gitea Open Source Git Server",
  "cvss": {
    "score": 8.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-06-11T02:23:10Z",
    "first_seen_at": "2026-11-14T14:50:35.824Z",
    "days_after_publication": -22.7,
    "repo": "Alardiians/gitea-CVE-2026-28699",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Gitea versions up to and including 1.26.1 allow OAuth2 access token scope enforcement to be bypassed through HTTP Basic authentication.",
  "cwe": "CWE-284",
  "cvss_by_source": {
    "cna": 8.1
  },
  "repos": [
    {
      "repo": "Alardiians/gitea-CVE-2026-28699",
      "url": "https://github.com/Alardiians/gitea-CVE-2026-28699",
      "created_at": "2026-06-11T02:23:10Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-01-17T18:58:44Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Gitea",
        "product": "Gitea Open Source Git Server",
        "ranges": [
          "\u003c= 1.26.1"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "code.gitea.io/gitea",
        "ranges": [
          "\u003c 1.26.2"
        ],
        "fixed_in": [
          "1.26.2"
        ],
        "ecosystem": "Go",
        "advisory": "GHSA-9r5x-wg6m-x2rc"
      }
    ],
    "upgrade": [
      "Upgrade code.gitea.io/gitea to 1.26.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-9r5x-wg6m-x2rc"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/go-gitea/gitea/pull/37503"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/go-gitea/gitea/releases/tag/v1.26.2"
      },
      {
        "kind": "Release notes",
        "url": "https://blog.gitea.com/release-of-1.26.2/"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/healthz",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:73"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/user",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:97"
      ]
    },
    {
      "method": "GET",
      "path_template": "/user/login",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:92"
      ]
    },
    {
      "method": "PATCH",
      "path_template": "/api/v1/user/settings",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer gta_..."
        },
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        }
      ],
      "body_markers": [
        "\"full_name\":\"x\"",
        "\"full_name\""
      ],
      "content_type": "application/json",
      "ports": [
        8000
      ],
      "protocol": "https",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/WRITEUP.md:180",
        "Alardiians/gitea-CVE-2026-28699/WRITEUP.md:187",
        "Alardiians/gitea-CVE-2026-28699/poc.py:134"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/user/applications/oauth2",
      "body_markers": [
        "\"name\":\"poc-app\"",
        "\"redirect_uris\"",
        "\"confidential_client\""
      ],
      "content_type": "application/json",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:85"
      ]
    },
    {
      "method": "POST",
      "path_template": "/login/oauth/access_token",
      "body_markers": [
        "grant_type=authorization_code",
        "client_id=",
        "client_secret=",
        "code=",
        "redirect_uri=http://127.0.0.1:8000/callback\"   # never served; we read the 302 Location"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:122"
      ]
    },
    {
      "method": "POST",
      "path_template": "/login/oauth/grant",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/login/oauth/authorize"
        }
      ],
      "body_markers": [
        "_csrf=",
        "client_id=",
        "granted=true",
        "redirect_uri=http://127.0.0.1:8000/callback\"   # never served; we read the 302 Location",
        "scope=read:user",
        "state=xyz"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:110"
      ]
    },
    {
      "method": "POST",
      "path_template": "/user/login",
      "headers": [
        {
          "name": "Referer",
          "value": "{var}/user/login"
        }
      ],
      "body_markers": [
        "_csrf=",
        "user_name=",
        "password="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "Alardiians/gitea-CVE-2026-28699"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Alardiians/gitea-CVE-2026-28699/poc.py:93"
      ]
    }
  ],
  "rules": []
}
