{"answers":{"affected":"3 open source packages ship an affected version, including github.com/h44z/wg-portal.","exploited":"There is no known exploitation of GHSA-grh9-37g7-53mj in the wild and no public exploit code.","fix":"Upgrade github.com/h44z/wg-portal to 2.1.2 or later.","what":"GHSA-grh9-37g7-53mj is a vulnerability in github.com/h44z/wg-portal, published on 2 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-grh9-37g7-53mj and fix it if it is affected.\n\nWhat it is: GHSA-grh9-37g7-53mj is a vulnerability in github.com/h44z/wg-portal, published on 2 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-grh9-37g7-53mj in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/h44z/wg-portal (Go): affected all versions; no fix listed\n- github.com/h44z/wg-portal (Go): affected all versions; fixed in 2.1.2\n- github.com/h44z/wg-portal (Go): affected all versions; fixed in 2.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-grh9-37g7-53mj/ (Markdown: https://insights.sbomify.com/GHSA-grh9-37g7-53mj/index.md)","id":"GHSA-grh9-37g7-53mj","markdown":"https://insights.sbomify.com/GHSA-grh9-37g7-53mj/index.md","name":"GHSA-grh9-37g7-53mj","record":{"aliases":["GO-2026-4398"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"WireGuard Portal","requires_auth":"none","summary":"Attackers can redirect users to malicious sites after OAuth login due to insufficient validation of the return parameter in WireGuard Portal v2.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nAn 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.\n\n### Patches\nThe 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.","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"WireGuard Portal v2 has Open Redirect Vulnerability in OAuth Authentication Flow","id":"GHSA-grh9-37g7-53mj","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"open_redirect","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/h44z/wg-portal","purl":"pkg:golang/github.com/h44z/wg-portal","source":"GO-2026-4398"},{"ecosystem":"Go","fixed":["2.1.2"],"introduced":["0"],"last_affected":[],"package":"github.com/h44z/wg-portal","purl":null,"source":"GHSA-grh9-37g7-53mj"},{"ecosystem":"Go","fixed":["2.1.2"],"introduced":["0"],"last_affected":[],"package":"github.com/h44z/wg-portal","purl":"pkg:golang/github.com/h44z/wg-portal","source":"GHSA-grh9-37g7-53mj"}],"products":null,"published":"2026-02-02","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can redirect users to malicious sites after OAuth login due to insufficient validation of the return parameter in WireGuard Portal v2.","url":"https://insights.sbomify.com/GHSA-grh9-37g7-53mj/"}