CVE-2020-12283 json
Open redirect vulnerability in Sourcegraph
published 2020-04-30 6 y ago modified 2026-06-17 4 mo ago also GHSA-mx43-r985-5h4m , EUVD-2021-2557
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/sourcegraph/sourcegraph 3.14.4, 3.15.1
- sourcegraph sourcegraph 3.15.1
- github.com/sourcegraph/sourcegraph@c0f4817 commit
- github.com/sourcegraph/sourcegraph#10167 pull request
Exploit prediction
1.33% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2020-085-sourcegraph referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/sourcegraph/sourcegraph | <3.14.4 >=3.15.0, <3.15.1 |
3.14.4 3.15.1 |
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/sourcegraph/sourcegraph/pull/10167
web, patch, third-party-advisory
-
github.com
/sourcegraph/sourcegraph/commit/c0f48172e815c7f66471a38f0a06d1fc32a77a64
web, patch, third-party-advisory
-
securitylab.github.com
/advisories/GHSL-2020-085-sourcegraph
advisory, exploit, third-party-advisory
-
github.com
/sourcegraph/sourcegraph/compare/v3.15.0...v3.15.1
web, release-notes, third-party-advisory
-
github.com
/sourcegraph/sourcegraph/blob/master/CHANGELOG.md
web, release-notes, third-party-advisory
-
github.com
/sourcegraph/sourcegraph/security/advisories/GHSA-mx43-r985-5h4m
web
-
nvd.nist.gov
/vuln/detail/CVE-2020-12283
advisory
-
github.com
/sourcegraph/sourcegraph
package
Sources
- CVE List CVE-2020-12283
- GitHub Advisory GHSA-mx43-r985-5h4m
- NVD CVE-2020-12283
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.