All vulnerabilities

Servers and applications

GHSA-799r-mx22-r63q

SSRF bypass via IPv6 unspecified address :: in repository migration, mirror sync, and webhooks

Severity
High 7.7
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Weakness
Server-side request forgery (CWE-918)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Sources
Project advisories (GitHub)

Description

The SSRF protection introduced in commit b9a0093e9c ("security: close SSRF in repository migration and recurring mirror sync") is incomplete. The CIDR-based IP denylist in internal/netx/netx.go blocks ::1/128 (IPv6 loopback) but does not block ::/128 (IPv6 unspecified address). On Linux systems with dual-stack networking, connecting to :: reaches localhost, allowing SSRF via http://[::]:PORT/path in repository migration, mirror sync, webhook creation, and webhook delivery.

An authenticated attacker with permission to create a repository migration, mirror, or webhook can bypass the SSRF guard by using http://[::]:PORT/path as the target URL. This allows the attacker to reach localhost services (Redis, databases, internal APIs) and cloud metadata endpoints in hosted environments.

File: internal/netx/netx.go, lines 13-36

The IPv6 CIDR denylist includes ::1/128 (loopback) but omits ::/128 (unspecified address). On systems where :: resolves to localhost, this creates an SSRF bypass.

From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.3

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,097,312Docker Hub, 22 Nov 2026
GitHub stars
47,981GitHub, 22 Nov 2026
Forks
5,081GitHub, 22 Nov 2026
Latest release
v0.14.4GitHub, 22 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References