What’s Vulnerable › Vulnerabilities
CVE-2022-25295: Open Redirect
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-09-11 · updated 2026-06-17
- Weakness: CWE-601
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.
Affected products
- github.com/gophish/gophish: before 0.12.0 — fixed in 0.12.0
How to fix
Upgrade to a fixed version: github.com/gophish/gophish 0.12.0. Check the vendor advisory for mitigations.
References
- https://github.com/gophish/gophish/pull/2262
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177
- https://github.com/gophish/gophish/pull/2262
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177
Get alerted when CVE-2022-25295 or the next vulnerability affects your stack