# CVE-2026-82402: Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-14T18:49:19.768Z
- Modified: 2026-10-20T02:17:12.277Z
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.15.0+dev

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6> (exploit)
- <https://github.com/gogs/gogs/pull/8391>
- <https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e>
- <https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-main>

## Sources

- CVE List: [CVE-2026-82402](https://www.cve.org/CVERecord?id=CVE-2026-82402), CVE Terms of Use, modified 2026-10-20
- NVD: [CVE-2026-82402](https://nvd.nist.gov/vuln/detail/CVE-2026-82402), Public domain, modified 2026-10-20

---

Page: https://cve.day/CVE-2026-82402 · Whole record: https://cve.day/CVE-2026-82402.json · Rebuilt by cve.day 2026-11-25T22:59:44.792Z
