PoC Monitor
← All CVEs
CVE-2026-27771published 3 Jul 2026 20:19 UTCData: JSON · API

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.

First public PoC 37 days beforebefore publication · 27 May 2026
Public PoCs21 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS8.2high · scored by CNA · CWE-862
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
code.gitea.io/gitea (Go)
  • < 1.26.2

Fixed in 1.26.2

from GitHub Security Advisory GHSA-8qw8-rq86-9pc2

Mitigation

Upgrade code.gitea.io/gitea to 1.26.2 or later.

References

1 more

Timeline

Days relative to CVE publication
-35-28-21-14-7t=0+7First public PoC27 May 2026 · t−37dCVE published3 Jul 2026 · t = 0

First 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
RepositoryCreatedStarsAssessment
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.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Gitea Container Registry - Unauthorized Private Image Accessunknown14 Nov 2026

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

POST /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.

POST /api/v1/users/{var}/tokens
(?i)^/api/v1/users/[^/?#]*/tokens(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /api/v1/users/{var}/tokens
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.

POST /api/v1/users/{var}/tokens
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