{"id":"CVE-2022-25295","aliases":["CVE-2022-25295","GHSA-hvw3-p9px-gpc9","GO-2022-0987"],"related":[],"kind":"vulnerability","state":"published","title":"Open Redirect","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Gophish before 0.12.0 vulnerable to Open Redirect in github.com/gophish/gophish","format":"markdown","source":"go"},{"lang":"es","text":"Esto afecta al paquete github.com/gophish/gophish versiones anteriores a 0.12.0. Una vulnerabilidad de Redireccionamiento Abierto se presenta en el siguiente parámetro de consulta. La aplicación usa url.Parse(r.FormValue(\"next\")) para extraer la ruta y eventualmente redirigir al usuario a una URL relativa, pero si el parámetro next comienza con múltiples barras invertidas como \\\\\\\\\\\\example.com, el navegador redirigirá al usuario a http://example.com","source":"nvd"}],"published":"2022-09-11T13:45:20.564Z","modified":"2026-06-17T04:33:20.420Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"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","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"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","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"0.12.0","status":"affected"}],"product":"github.com/gophish/gophish","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.0"}],"ecosystem":"Go","package":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.0"}],"ecosystem":"Go","package":"github.com/gophish/gophish","purl":"pkg:golang/github.com/gophish/gophish","source":"go"},{"ranges":[{"status":"affected","fixed":"0.12.0"}],"vendor":"getgophish","product":"gophish","cpe":"cpe:2.3:a:getgophish:gophish:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/gophish/gophish/pull/2262","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25295","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/gophish/gophish","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/gophish/gophish/releases/tag/v0.12.0","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-hvw3-p9px-gpc9","tags":["advisory"],"sources":["go"]}],"credits":["Snyk Security Team"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25295","url":"https://www.cve.org/CVERecord?id=CVE-2022-25295","licence":"CVE Terms of Use","modified":"2024-09-16T17:29:06.682Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hvw3-p9px-gpc9","url":"https://github.com/advisories/GHSA-hvw3-p9px-gpc9","licence":"CC-BY-4.0","modified":"2024-08-21T16:28:58.334Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0987","url":"https://pkg.go.dev/vuln/GO-2022-0987","licence":"CC-BY-4.0","modified":"2026-03-03T04:52:33.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25295","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25295","licence":"Public domain","modified":"2026-06-17T04:33:20.420Z"}],"updatedAt":"2026-11-25T22:58:14.826Z","epss":{"score":0.00723,"percentile":0.55238,"date":"2026-12-01T12:00:22.000Z"}}