# GHSA-grh9-37g7-53mj: WireGuard Portal v2 has Open Redirect Vulnerability in OAuth Authentication Flow

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-02-02T21:16:49.000Z
- Modified: 2026-02-05T09:56:23.468Z
- Also known as: GO-2026-4398
- Weaknesses: CWE-601

## Description

### Summary
An Open Redirect vulnerability exists in the OAuth authentication flow that allows attackers to redirect users to external malicious websites after authentication. The vulnerability is caused by insufficient validation of the return parameter in the OAuth login initialization endpoint.

### Patches
The problem was fixed in the latest release, v2.1.2. The [docker images](https://hub.docker.com/r/wgportal/wg-portal) for the tag 'latest' built from the master branch also include the fix.

(As written by GitHub Advisory Database.)

## Affected

- github.com/h44z/wg-portal (Go): before 2.1.2; all versions

## References

- <https://github.com/h44z/wg-portal/security/advisories/GHSA-grh9-37g7-53mj> (advisory, web)
- <https://github.com/h44z/wg-portal/commit/e62db0d62ebabbec39c767b953b92fb4b4d08a81> (fix, web)
- <https://github.com/h44z/wg-portal> (package)
- <https://github.com/h44z/wg-portal/releases/tag/v2.1.2> (web)

## Sources

- GitHub Advisory Database: [GHSA-grh9-37g7-53mj](https://github.com/advisories/GHSA-grh9-37g7-53mj), CC-BY-4.0, modified 2026-02-05
- Go Vulnerability Database: [GO-2026-4398](https://pkg.go.dev/vuln/GO-2026-4398), CC-BY-4.0, modified 2026-02-05

---

Page: https://cve.day/GHSA-grh9-37g7-53mj · Whole record: https://cve.day/GHSA-grh9-37g7-53mj.json · Rebuilt by cve.day 2026-11-25T22:56:24.330Z
