All vulnerabilities
CVE-2026-82402GHSA-3g28-2vwg-gxq6

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

gogs gogs
CVSS
5.3Medium
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 20 Oct 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.34%Chance of exploitation activity in the next 30 days, higher than 25% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in0.15.0+devFixed versionGitHub
Published14 Oct 2026Updated 20 Oct 2026CVE List

What fixes it

  • 0.15.0+devgogs.io/gogs, goGitHubgo get gogs.io/gogs@v0.15.0+dev

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

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.

Text from CVE List

Affected versions 2

  • gogsaffected: < 0.15.0+devCVE List
  • gogs.io/gogs, go0.15.0+devGitHub

References 4