Gitea Open Source Git Server
Gitea Basic Auth bypasses OAuth2 access token scopes
Gitea versions up to and including 1.26.1 allow OAuth2 access token scope enforcement to be bypassed through HTTP Basic authentication.
First public PoC
23 days beforebefore publication · 11 Jun 2026
Public PoCs11 on GitHub
CVSS8.1high · scored by CNA · CWE-284
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
Gitea Gitea Open Source Git Server
- <= 1.26.1
Mitigation
Upgrade code.gitea.io/gitea to 1.26.2 or later.
References
- Vendor advisory github.com/go-gitea/gitea/security/advisories/…
- Patch github.com/go-gitea/gitea/pull/37503
- Release notes github.com/go-gitea/gitea/releases/tag/v1.26.2
1 more
- Release notes blog.gitea.com/release-of-1.26.2
Timeline
Days relative to CVE publicationFirst public PoC 23 days before publication; not in CISA KEV. First PoC: Alardiians/gitea-CVE-2026-28699 (created 11 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Alardiians/gitea-CVE-2026-28699 | 11 Jun 2026 −23 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /api/healthz
- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:73
GET /api/v1/user
- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:97
GET /user/login
- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:92
PATCH /api/v1/user/settings
- Key headers
Authorization: Bearer gta_...Authorization: Bearer {var}- Body markers
"full_name":"x""full_name"inapplication/json- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- 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
POST /api/v1/user/applications/oauth2
- Body markers
"name":"poc-app""redirect_uris""confidential_client"inapplication/json- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:85
POST /login/oauth/access_token
- Body markers
grant_type=authorization_codeclient_id=client_secret=code=redirect_uri=http://127.0.0.1:8000/callback" # never served; we read the 302 Locationinapplication/x-www-form-urlencoded- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:122
POST /login/oauth/grant
- Key headers
Referer: {var}/login/oauth/authorize- Body markers
_csrf=client_id=granted=trueredirect_uri=http://127.0.0.1:8000/callback" # never served; we read the 302 Locationscope=read:userstate=xyzinapplication/x-www-form-urlencoded- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:110
POST /user/login
- Key headers
Referer: {var}/user/login- Body markers
_csrf=user_name=password=inapplication/x-www-form-urlencoded- Ports
- 8000
- Seen in
- 1 repo: Alardiians/gitea-CVE-2026-28699
- Evidence
- Alardiians/gitea-CVE-2026-28699/poc.py:93
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
GET /api/healthz
(?i)^/api/healthz(?:[?#].*)?$
GET /api/v1/user
(?i)^/api/v1/user(?:[?#].*)?$
GET /user/login
(?i)^/user/login(?:[?#].*)?$
PATCH /api/v1/user/settings
(?i)^/api/v1/user/settings(?:[?#].*)?$
POST /api/v1/user/applications/oauth2
(?i)^/api/v1/user/applications/oauth2(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
GET /api/healthz
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-28699 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/healthz"; reference:url,poc.griffinguard.io/cve/CVE-2026-28699; classtype:web-application-attack; sid:9865733; rev:1;)
GET /api/v1/user
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-28699 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/user"; reference:url,poc.griffinguard.io/cve/CVE-2026-28699; classtype:web-application-attack; sid:9742708; rev:1;)
GET /user/login
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-28699 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/user/login"; reference:url,poc.griffinguard.io/cve/CVE-2026-28699; classtype:web-application-attack; sid:9846779; rev:1;)
PATCH /api/v1/user/settings
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-28699 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"PATCH"; http.uri; content:"/api/v1/user/settings"; http.header; content:"Authorization: Bearer gta_..."; nocase; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|full_name|22|:|22|x|22|"; http.request_body; content:"|22|full_name|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28699; classtype:web-application-attack; sid:9178386; rev:1;)
POST /api/v1/user/applications/oauth2
alert http any any -> $HOME_NET [8000] (msg:"GG PoC-Monitor CVE-2026-28699 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/user/applications/oauth2"; http.request_body; content:"|22|name|22|:|22|poc-app|22|"; http.request_body; content:"|22|redirect_uris|22|"; http.request_body; content:"|22|confidential_client|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-28699; classtype:web-application-attack; sid:9015456; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
GET /api/healthz
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-28699)
id: gg-pocmon-cve-2026-28699-9865733
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28699. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28699
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/healthz'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28699
GET /api/v1/user
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-28699)
id: gg-pocmon-cve-2026-28699-9742708
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28699. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28699
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/user'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28699
GET /user/login
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-28699)
id: gg-pocmon-cve-2026-28699-9846779
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28699. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28699
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/user/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28699
PATCH /api/v1/user/settings
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-28699)
id: gg-pocmon-cve-2026-28699-9178386
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28699. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28699
logsource:
category: webserver
detection:
selection:
cs-method: PATCH
cs-uri-stem|contains|all:
- '/api/v1/user/settings'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28699
POST /api/v1/user/applications/oauth2
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-28699)
id: gg-pocmon-cve-2026-28699-9015456
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-28699. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-28699
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/user/applications/oauth2'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.28699