{"answers":{"affected":"3 open source packages ship an affected version, including github.com/h44z/wg-portal.","exploited":"There is no known exploitation of GHSA-2r2v-9pf8-6342 in the wild and no public exploit code.","fix":"Upgrade github.com/h44z/wg-portal to 2.0.0-alpha.3 or later.","what":"GHSA-2r2v-9pf8-6342 is a vulnerability in github.com/h44z/wg-portal, published on 7 Jan 2025. 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-2r2v-9pf8-6342 and fix it if it is affected.\n\nWhat it is: GHSA-2r2v-9pf8-6342 is a vulnerability in github.com/h44z/wg-portal, published on 7 Jan 2025. 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-2r2v-9pf8-6342 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 from 2.0.0-alpha.1; fixed in 2.0.0-alpha.3\n- github.com/h44z/wg-portal (Go): affected from 2.0.0-alpha.1; fixed in 2.0.0-alpha.3\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-2r2v-9pf8-6342/ (Markdown: https://insights.sbomify.com/GHSA-2r2v-9pf8-6342/index.md)","id":"GHSA-2r2v-9pf8-6342","markdown":"https://insights.sbomify.com/GHSA-2r2v-9pf8-6342/index.md","name":"GHSA-2r2v-9pf8-6342","record":{"aliases":["GO-2025-3371"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"WireGuard Portal","requires_auth":"none","summary":"An attacker can exploit an insecure OAuth redirect URI to hijack user accounts 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":"WireGuard Portal v2 Vulnerable to OAuth Insecure Redirect URI / Account Takeover in github.com/h44z/wg-portal.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/h44z/wg-portal from v2.0.0-alpha.1 before v2.0.0-alpha.3.","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 Vulnerable to OAuth Insecure Redirect URI / Account Takeover in github.com/h44z/wg-portal","id":"GHSA-2r2v-9pf8-6342","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"open_redirect","year":"2025"},"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-2025-3371"},{"ecosystem":"Go","fixed":["2.0.0-alpha.3"],"introduced":["2.0.0-alpha.1"],"last_affected":[],"package":"github.com/h44z/wg-portal","purl":null,"source":"GHSA-2r2v-9pf8-6342"},{"ecosystem":"Go","fixed":["2.0.0-alpha.3"],"introduced":["2.0.0-alpha.1"],"last_affected":[],"package":"github.com/h44z/wg-portal","purl":"pkg:golang/github.com/h44z/wg-portal","source":"GHSA-2r2v-9pf8-6342"}],"products":null,"published":"2025-01-07","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":"An attacker can exploit an insecure OAuth redirect URI to hijack user accounts in WireGuard Portal v2.","url":"https://insights.sbomify.com/GHSA-2r2v-9pf8-6342/"}