All vulnerabilities

Servers and applications

GHSA-vghx-gp7m-xpx2

CSRF: Milestone open/close via GET request (CWE-352)

Severity
Low
Published
16 Nov 2026
Last changed
16 Nov 2026
Added to UpHeron
16 Nov 2026
Fixed in
0.15.0
Sources
Project advisories (GitHub)

Description

File: cmd/gogs/internal/web/web.go (route registration), internal/route/repo/issue.go:1228 (ChangeMilestonStatus) Line: cmd/gogs/internal/web/web.go:431 CWE: CWE-352 — Cross-Site Request Forgery (CSRF) Severity: Low CVSS: 4.3 — CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N

ChangeMilestonStatus performs a state-changing operation (closing or reopening a repository milestone) and is registered as a GET route:

CSRF token protection ([session] CSRF_COOKIE_NAME) was removed from main in PR #8300. The session cookie set by go-macaron/session (i_like_gogs) is HttpOnly; SameSite=Lax but does not carry any CSRF token. Under SameSite=Lax, the cookie is still sent on a top-level GET navigation (e.g. the victim clicking a link, or any redirect that results in a top-level navigation). Because the milestone status change is wired to GET, no token, Origin, or Referer check is performed, a single crafted link is sufficient to trigger the state change while the victim is authenticated.

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

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version before 0.15.0

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 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