# CVE-2020-12283: Open redirect vulnerability in Sourcegraph

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-04-30T04:07:29.000Z
- Modified: 2026-06-17T02:51:33.960Z
- Also known as: GHSA-mx43-r985-5h4m
- Weaknesses: CWE-601
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/sourcegraph/sourcegraph (Go): before 3.14.4; from 3.15.0 before 3.15.1
- sourcegraph sourcegraph: before 3.15.1

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2020-085-sourcegraph> (exploit, advisory, third-party-advisory)
- <https://github.com/sourcegraph/sourcegraph/pull/10167> (patch, third-party-advisory, web)
- <https://github.com/sourcegraph/sourcegraph/compare/v3.15.0...v3.15.1> (release-notes, third-party-advisory, web)
- <https://github.com/sourcegraph/sourcegraph/commit/c0f48172e815c7f66471a38f0a06d1fc32a77a64> (patch, third-party-advisory, web)
- <https://github.com/sourcegraph/sourcegraph/blob/master/CHANGELOG.md> (release-notes, third-party-advisory, web)
- <https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-mx43-r985-5h4m> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-12283> (advisory)
- <https://github.com/sourcegraph/sourcegraph> (package)

## Sources

- CVE List: [CVE-2020-12283](https://www.cve.org/CVERecord?id=CVE-2020-12283), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mx43-r985-5h4m](https://github.com/advisories/GHSA-mx43-r985-5h4m), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-12283](https://nvd.nist.gov/vuln/detail/CVE-2020-12283), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-12283 · Whole record: https://cve.day/CVE-2020-12283.json · Rebuilt by cve.day 2026-11-25T22:57:52.241Z
