CVE-2017-1000070: Open Redirect in oauth2_proxy

Summary

20/12/2021
Yes i
Moderate
6.1

CVE-2017-1000070: Open Redirect in oauth2_proxy. Affects github.com/bitly/oauth2_proxy versions < 2.2.0. Fixed in 2.2.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The oauth2_proxy package, specifically version 2.1 and earlier, is a Bitly library written in Go. It provides support for the 2-legged OAuth flow. OAuth2_proxy is designed to act as a reverse proxy and authenticate requests using OAuth2 providers such as GitHub, Google, and Azure. It is commonly used to secure web applications and APIs by adding authentication and authorization capabilities. However, versions 2.1 and earlier are vulnerable to an open redirect vulnerability during the start and termination of the 2-legged OAuth flow. This vulnerability is a result of improper input validation and a violation of RFC-6819.

Vulnerability Detail

The open redirect vulnerability in oauth2_proxy can be exploited by an attacker to redirect users to malicious websites. During the 2-legged OAuth flow, the redirect_uri parameter is not properly validated, allowing an attacker to craft a malicious URL that redirects the user to a different domain. This can lead to various attacks, such as phishing, where the attacker tricks the user into visiting a malicious website that appears legitimate. The impact of this vulnerability depends on the attacker's intentions and the user's actions, but it can potentially result in the disclosure of sensitive information or the execution of arbitrary code.

How To Fix

Latest published version: v2.0.1+incompatible as of 22 Oct 2026

go get github.com/bitly/oauth2_proxy@v2.0.1+incompatible

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.2.0

This is the first release that contains the fix.

go get github.com/bitly/oauth2_proxy@v2.2.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. It is advised to upgrade to the latest version of oauth2_proxy to mitigate the risk.

Conclusion

The open redirect vulnerability in oauth2_proxy can be mitigated by upgrading to version 2.2 or later. This will ensure that the vulnerability is patched and no longer exploitable. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/bitly/oauth2_proxy →

Share this vulnerability

FAQ

oauth2_proxy is a Bitly library written in Go that acts as a reverse proxy and provides authentication and authorization capabilities using OAuth2 providers.

The impact of this vulnerability depends on the attacker's intentions and the user's actions. It can potentially lead to phishing attacks, disclosure of sensitive information, or execution of arbitrary code.

To fix this vulnerability, it is recommended to upgrade to version 2.2 or later of oauth2_proxy.

No, only versions 2.1 and earlier are affected. Version 2.2 and later have the vulnerability patched.

Yes, the CVSS score for this vulnerability is 6.1.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/bitly/oauth2_proxy.

How To Fix

Latest published version: v2.0.1+incompatible as of 22 Oct 2026

go get github.com/bitly/oauth2_proxy@v2.0.1+incompatible

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.2.0

This is the first release that contains the fix.

go get github.com/bitly/oauth2_proxy@v2.2.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.