Security Digest · Vulnerability record

CVE-2026-22874: Gitea: Incomplete SSRF Protection in Webhook and Migration Allow-list Default Filter

Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.

CVSS 9.6 Critical EPSS 0.5% · p39

Should you act?

Critical, preconditions apply

Severe if exploited, but exploitation needs conditions that may not apply to you. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • Not in CISA KEV, but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
  • EPSS 0.5%, percentile 39: FIRST’s model estimates a 0.5% chance of exploitation activity in the next 30 days, higher than 39% of all scored CVEs (low). EPSS is a probability, not a verdict.
  • Needs an account (low (any account)). Exposure depends on who can log in.
  • Only applies if your dependency tree includes code.gitea.io/gitea (Go) < 1.26.3, fixed in 1.26.3. Check your lockfile, including transitive dependencies.

What it is

Gitea versions up to and including 1.26.2 have incomplete SSRF protection in webhook and migration allow-list filtering.

From the GitHub advisory

Summary

Gitea's default SSRF allow-list (MatchBuiltinExternal, used by both webhook delivery and repository migrations) relies on Go's standard library net.IP.IsPrivate(), which only covers RFC 1918 and RFC 4193. As a result, several IP ranges commonly used for cloud metadata services, internal networks, and IPv6 transition mechanisms are not blocked, allowing authenticated users to send HTTP requests to those destinations and read the responses via the webhook history UI.

Details

The vulnerability lives in HostMatchList.checkIP, specifically line 103:

net.IP.IsPrivate() recognises only: - 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16 (RFC 1918) - fc00::/7 (RFC 4193 IPv6 ULA)

Weakness type: CWE-918.

Product: code.gitea.io/gitea (Go) · Assigned by: Gitea · Published: 2026-07-03

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Gocode.gitea.io/gitea< 1.26.31.26.3
VendorProductAffected versions (per CVE record)
GiteaGitea Open Source Git Server<= 1.26.2

Severity scores

Scored byCVSSScoreVector
Gitea3.19.6 CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
GitHub3.19.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Privileges required: low (any account)
  • User interaction: none
  • Scope: changed (can affect other components)

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation poc, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 0.46% probability of exploitation activity in the next 30 days; percentile 39.

Timeline

  • — CVE record published by Gitea
  • — CVE record last updated
  • — GitHub-reviewed advisory GHSA-2r5c-gw76-rh3w published (critical)

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vendor and project advisories, patches

  1. GitHub Security Advisory github.com
  2. GitHub Pull Request #38173 github.com
  3. GitHub Pull Request #38059 github.com
  4. Gitea v1.26.3 Release github.com
  5. Gitea v1.26.4 Release Blog Post blog.gitea.com

Vulnerability records

  1. GitHub Advisory GHSA-2r5c-gw76-rh3w github.com
  2. CVE.org record CVE-2026-22874 cve.org
  3. NVD entry CVE-2026-22874 nvd.nist.gov

Critical Go advisories · Today’s Security Digest