Live threats

All CVEs / Sourcegraph

CVE-2020-12283Sourcegraph

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.3%
probability of exploitation in 30 days · percentile 71
Auth required
No
Published
Apr 30, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-601
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sourcegraph.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/sourcegraph/sourcegraph < 3.14.4 3.14.4 go get github.com/sourcegraph/sourcegraph@v3.14.4
Go github.com/sourcegraph/sourcegraph ≥ 3.15.0 < 3.15.1 3.15.1 go get github.com/sourcegraph/sourcegraph@v3.15.1

Per OSV / GitHub Advisories (GHSA-mx43-r985-5h4m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sourcegraphsourcegraph< 3.15.1

Official sources

References

Links published by the sources. Open them with care.