Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/sourcegraph/sourcegraph
  4. ›
  5. CVE-2020-12283

CVE-2020-12283: URL Redirection to Untrusted Site ('Open Redirect')

December 20, 2021 (updated October 2, 2023)

Sourcegraph before 3.15.1 has a vulnerable authentication workflow because of improper validation in the SafeRedirectURL method in cmd/frontend/auth/redirect.go, such as for the //foo//example.com substring.

References

  • github.com/advisories/GHSA-mx43-r985-5h4m
  • github.com/sourcegraph/sourcegraph/blob/master/CHANGELOG.md
  • github.com/sourcegraph/sourcegraph/commit/c0f48172e815c7f66471a38f0a06d1fc32a77a64
  • github.com/sourcegraph/sourcegraph/compare/v3.15.0...v3.15.1
  • github.com/sourcegraph/sourcegraph/pull/10167
  • github.com/sourcegraph/sourcegraph/security/advisories/GHSA-mx43-r985-5h4m
  • nvd.nist.gov/vuln/detail/CVE-2020-12283
  • securitylab.github.com/advisories/GHSL-2020-085-sourcegraph

Code Behaviors & Features

Detect and mitigate CVE-2020-12283 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 3.14.4, all versions starting from 3.15.0 before 3.15.1

Fixed versions

  • 3.14.4
  • 3.15.1

Solution

Upgrade to versions 3.14.4, 3.15.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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/sourcegraph/sourcegraph/CVE-2020-12283.yml

Spotted a mistake? Edit the file on GitLab.

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

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