CVE-2020-12283Sourcegraph
Medium 6.1 No auth needed
Follow: this CVE · Sourcegraph · Sourcegraph We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Sourcegraph.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| sourcegraph | sourcegraph | < 3.15.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- securitylab.github.com Exploit Third Party Advisory