# CVE-2026-82402: Gogs open redirect via backslash normalization mismatch

Source: https://junglewise.ai/threats/cve-2026-82402-gogs-is-an-open-source-self-hosted-git-service-prior-to-0-15-0  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-14. Updated: 2026-10-16  
License: CC BY 4.0 with a link back

CVE-2026-82402 · Severity: info · Published 2026-10-14

Gogs is a self-hosted Git service that allows users to manage code repositories. An unauthenticated attacker can craft a specially crafted redirect link on a trusted Gogs domain using backslashes, which browsers interpret as pointing to an external attacker-controlled website instead of an internal page. This allows phishing attacks where victims are tricked into visiting malicious sites while believing they are on the trusted Gogs domain.

Technologies: [Gogs](https://junglewise.ai/threats/technologies/gogs). Vendors: [Gogs](https://junglewise.ai/threats/vendors/gogs).

## Quick answers

**Is CVE-2026-82402 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-82402 being exploited in the wild.

**How severe is CVE-2026-82402?** Informational severity, published 14 October 2026.

**Which products and versions are affected?** Gogs prior to 0.15.0+dev.

**Is there a fix for CVE-2026-82402?** Yes: fixed in 0.15.0+dev. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-82402 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-82402?** Check whether you run Gogs at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 0.15.0+dev

## Technical details

The vulnerability stems from a normalization mismatch in URL validation: the IsSameSite function validates a normalized form of redirect targets, but the getRedirect function and other callers use the original, non-normalized value in the HTTP Location response header. Specifically, backslash characters are handled differently during validation versus when constructing the redirect, allowing an unauthenticated attacker to bypass same-site checks via the /redirect endpoint and similar post-action redirect flows. The attack is network-accessible and requires no authentication or user interaction beyond clicking a malicious link.

## Affected products

- Gogs Gogs prior to 0.15.0+dev

## Timeline

- 2026-10-14: disclosed

## References

- [https://github.com/gogs/gogs/blob/main/CHANGELOG.md](https://github.com/gogs/gogs/blob/main/CHANGELOG.md)
- [https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e](https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e)

## Related threats

- [Gogs Git Smart HTTP authorization bypass](https://junglewise.ai/threats/cve-2026-123012-in-gogs-0-14-3-the-git-smart-http-authorization-layer-in)
- [Gogs stored XSS in Jupyter Notebook sanitizer endpoint](https://junglewise.ai/threats/cve-2026-52816-gogs-stored-xss-in-jupyter-notebook-sanitizer-endpoint)
- [Gogs unauthenticated information disclosure in organization teams API](https://junglewise.ai/threats/cve-2026-52815-gogs-unauthenticated-information-disclosure-in-organization-teams)
- [Gogs Denial of Service via SSH handshake stall in built-in SSH server](https://junglewise.ai/threats/cve-2026-52814-gogs-denial-of-service-via-ssh-handshake-stall-in-built-in-ssh)
- [Gogs path traversal and RCE via organization names](https://junglewise.ai/threats/cve-2026-52813-gogs-path-traversal-and-rce-via-organization-names)
