# CVE-2022-25295: Open Redirect

- Severity: Medium 5.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:U/RC:C`
- 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.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-11T13:45:20.564Z
- Modified: 2026-06-17T04:33:20.420Z
- Also known as: GHSA-hvw3-p9px-gpc9, GO-2022-0987
- Weaknesses: CWE-601
- Assigned by: snyk

## Description

This affects the package github.com/gophish/gophish before 0.12.0. The Open Redirect vulnerability exists in the next query parameter. The application uses url.Parse(r.FormValue("next")) to extract path and eventually redirect user to a relative URL, but if next parameter starts with multiple backslashes like \\\\\\example.com, browser will redirect user to http://example.com.

(As written by CVE List.)

## Affected

- github.com/gophish/gophish: from unspecified before 0.12.0
- github.com/gophish/gophish (Go): before 0.12.0
- getgophish gophish: before 0.12.0

## Every score

- snyk: 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/E:P/RL:U/RC:C`
- 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`
- NVD: 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://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177> (exploit, third-party-advisory, web)
- <https://github.com/gophish/gophish/pull/2262> (fix, patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25295> (advisory)
- <https://github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc> (fix, web)
- <https://github.com/gophish/gophish> (package)
- <https://github.com/gophish/gophish/releases/tag/v0.12.0> (web)
- <https://github.com/advisories/GHSA-hvw3-p9px-gpc9> (advisory)

## Sources

- CVE List: [CVE-2022-25295](https://www.cve.org/CVERecord?id=CVE-2022-25295), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-hvw3-p9px-gpc9](https://github.com/advisories/GHSA-hvw3-p9px-gpc9), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0987](https://pkg.go.dev/vuln/GO-2022-0987), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-25295](https://nvd.nist.gov/vuln/detail/CVE-2022-25295), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25295 · Whole record: https://cve.day/CVE-2022-25295.json · Rebuilt by cve.day 2026-11-25T22:58:14.826Z
