Gitea Open Source Git Server
Gitea Composer package source links use insufficient permission checks
Gitea versions up to and including 1.26.1 have insufficient permission checks for Composer package source links, which can expose private or internal package source information.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- <= 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/37610
- 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 37 days before publication; not in CISA KEV. First PoC: HORKimhab/CVE-2026-27771 (created 27 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HORKimhab/CVE-2026-27771 | 27 May 2026 −37 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Gitea Container Registry - Unauthorized Private Image Access | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 1 PoC repoPOST /api/v1/users/{var}/tokens
- Key headers
X-Csrf-Token: {var}- Content-Type
application/json- Seen in
- 1 repo: HORKimhab/CVE-2026-27771
- Evidence
- HORKimhab/CVE-2026-27771/CVE-2026-27771-portbuster1337/CVE-2026-27771-exploit.py:254
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/users/[^/?#]*/tokens(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-27771 Gitea Gitea Open Source Git Server exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/users/"; http.uri; content:"/tokens"; http.header_names; content:"X-Csrf-Token"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-27771; classtype:web-application-attack; sid:9665528; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Gitea Gitea Open Source Git Server exploit attempt (CVE-2026-27771)
id: gg-pocmon-cve-2026-27771-9665528
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-27771. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-27771
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/users/'
- '/tokens'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.27771