PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-82402 gogs CVE debrief

An open redirect vulnerability exists in Gogs, a self-hosted Git service, prior to version 0.15.0+dev. This vulnerability allows an unauthenticated attacker to redirect users to attacker-controlled content via the /redirect endpoint, potentially leading to phishing attacks. The vulnerability is caused by a backslash normalization mismatch between the IsSameSite function in internal/urlx/urlx.go and the getRedirect function in cmd/gogs/internal/web/web.go. This allows browsers to interpret the Location value as a scheme-relative external URL. Defenders responsible for Gogs instances should assess exposure and prioritize updating to version 0.15.0+dev or later to mitigate this.

Vendor
gogs
Product
Unknown
CVSS
MEDIUM 5.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-14
Original CVE updated
2026-10-14
Advisory published
2026-10-14
Advisory updated
2026-10-14

Who should care

Defenders responsible for Gogs instances should assess exposure and prioritize updating to version 0.15.0+dev or later to mitigate this vulnerability. Operators of Gogs instances should review the vulnerability and take necessary actions to protect their systems. Security teams should monitor Gogs instance logs for suspicious redirect activity and verify that instances are running version 0.15.0+dev or later.

Why it matters

CVE-2026-82402 is a medium-severity open redirect vulnerability in Gogs that allows unauthenticated attackers to redirect users to attacker-controlled content, potentially leading to phishing attacks. Defenders responsible for Gogs instances should assess exposure and prioritize updating to version 0.15.0+dev or later.

  • Phishing attacks may be conducted by redirecting users to attacker-controlled content.
  • Defenders must verify Gogs instances are running version 0.15.0+dev or later.
  • Defenders should monitor Gogs instance logs for suspicious redirect activity.

Technical summary

The vulnerability exists in the /redirect endpoint of Gogs, allowing an unauthenticated attacker to provide a backslash-containing target. This causes a normalization mismatch, enabling browsers to interpret the Location value as a scheme-relative external URL. The vulnerability is caused by a backslash normalization mismatch between the IsSameSite function in internal/urlx/urlx.go and the getRedirect function in cmd/gogs/internal/web/web.go. This allows browsers to interpret the Location value as a scheme-relative external URL. Defenders should prioritize verifying and updating Gogs instances to version 0.15.0+dev or later to mitigate this vulnerability.

Defensive priority

Defenders should prioritize verifying and updating Gogs instances to version 0.15.0+dev or later to mitigate this vulnerability.

Recommended defensive actions

  • Verify Gogs instances are running version 0.15.0+dev or later.
  • Update Gogs instances to version 0.15.0+dev or later if vulnerable.
  • Monitor Gogs instance logs for suspicious redirect activity.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.

Evidence notes

The vulnerability is caused by a backslash normalization mismatch between the IsSameSite function in internal/urlx/urlx.go and the getRedirect function in cmd/gogs/internal/web/web.go. This allows browsers to interpret the Location value as a scheme-relative external URL.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-82402 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-82402

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-82402 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-82402

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Gogs: Open Redirect in /redirect endpoint via backslash bypass in `IsSameSite`

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/82xxx/CVE-2026-82402.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gogs/gogs/security/advisories/GHSA-3g28-2vwg-gxq6

    Supplemental source - x_refsource_CONFIRM

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gogs/gogs/pull/8391

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gogs/gogs/commit/0aa820e6d572771551871c0b5f5f32dffc565e3e

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/gogs/gogs/blob/main/CHANGELOG.md

    Supplemental source - x_refsource_MISC

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.