CVE-2026-82402Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`
Updated under an hour ago ()
Does this affect you?
It affects gogs. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 5.3 MEDIUM (v4.0, CNA)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
- Weakness (CWE)
- CWE-601
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Deferred
- Record last updated
- Oct 14, 2026
- First seen by InfoSec Signals
- Oct 14, 2026
Affected products
gogs gogs gogs:gogs (from the name) | before 0.15.0+dev | CNA record |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6x-refsource-confirm
- https://github.com/gogs/gogs/pull/8391x-refsource-misc
- https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3ex-refsource-misc
- https://github.com/gogs/gogs/blob/main/CHANGELOG.md#0150dev-mainx-refsource-misc
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.