CVE-2026-82402

published 14 Oct 2026 · updated 20 Oct 2026

Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

Gogs is an open source self-hosted Git service. Prior to 0.15.0+dev, an unauthenticated attacker can provide a backslash-containing target to the /redirect endpoint, and similar post-action redirect flows are also affected. internal/urlx/urlx.go IsSameSite validates a normalized form of the target while cmd/gogs/internal/web/web.go getRedirect and other callers use the original value in the Location response. This backslash normalization mismatch lets browsers interpret the Location value as a scheme-relative external URL, allowing links on a trusted Gogs domain to redirect victims to attacker-controlled content for phishing. This vulnerability is fixed in 0.15.0+dev.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GogsGogs<0.15.0+dev

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gogs, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-82402 severity on Zeptric[![CVE-2026-82402](https://zeptric.io/badge/cve/CVE-2026-82402.svg)](https://zeptric.io/cve/CVE-2026-82402)