# CVE-2026-52802: Gogs: Open Redirect via redirect_to in Gogs

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A: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.46%, higher than 41% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T16:42:02.000Z
- Modified: 2026-07-21T13:45:25.136Z
- Also known as: GHSA-xxhq-69mf-w8cr, GO-2026-5773
- 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.14.3, an open redirect vulnerability exists in Gogs where attacker-controlled redirect_to parameters can bypass validation, allowing redirection to arbitrary external sites. All redirects in Gogs that are validated via the IsSameSite function are vulnerable. The function only inspects the first two characters of the URL string. This check fails to account for directory traversal sequences followed by backslashes. This vulnerability is fixed in 0.14.3.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr> (exploit, advisory, web)
- <https://github.com/gogs/gogs/pull/8322> (web)
- <https://github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f> (web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52802> (advisory)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52802](https://www.cve.org/CVERecord?id=CVE-2026-52802), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-xxhq-69mf-w8cr](https://github.com/advisories/GHSA-xxhq-69mf-w8cr), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5773](https://pkg.go.dev/vuln/GO-2026-5773), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52802](https://nvd.nist.gov/vuln/detail/CVE-2026-52802), Public domain, modified 2026-06-25

---

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