Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gophish/gophish
  4. ›
  5. CVE-2022-25295

CVE-2022-25295: URL Redirection to Untrusted Site ('Open Redirect')

September 12, 2022 (updated September 15, 2022)

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.

References

  • github.com/advisories/GHSA-hvw3-p9px-gpc9
  • github.com/gophish/gophish/commit/2a452bda89ffdb85f929fa78290bce1f456881dc
  • github.com/gophish/gophish/pull/2262
  • github.com/gophish/gophish/releases/tag/v0.12.0
  • nvd.nist.gov/vuln/detail/CVE-2022-25295
  • security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGOPHISHGOPHISH-2404177

Code Behaviors & Features

Detect and mitigate CVE-2022-25295 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.12.0

Fixed versions

  • v0.12.0

Solution

Upgrade to version 0.12.0 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

go/github.com/gophish/gophish/CVE-2022-25295.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.