Insecure OAuth 2.0 Implementation in Google OAuth Client Java Package

google-oauth-client-java Updated 02 Oct 2025

Summary

09/07/2020
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2020-7692: PKCE support is not implemented in accordance with the RFC for OAuth 2.0 for Native Apps. Affects google-oauth-client-java versions < 1.28.0-2. Fixed in 1.28.0-2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Google OAuth Client Java package is a library that facilitates the integration of OAuth 2.0 authentication in Java applications. It allows developers to easily implement secure authorization flows for accessing protected resources. However, the package has a vulnerability related to the implementation of Proof Key for Code Exchange (PKCE), which is crucial for securing authorization codes in native applications.

Vulnerability Detail

The vulnerability arises from the lack of proper implementation of PKCE as per the RFC for OAuth 2.0 for Native Apps. This oversight means that the authorization code returned by the authorization server cannot guarantee that the client making the request is the one that will be authorized. Consequently, an attacker could exploit this weakness by obtaining the authorization code through a malicious app on the client-side, leading to unauthorized access to protected resources. This issue affects versions of the package prior to 1.31.0.

How To Fix

Minimum fixed version

1.28.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade google-oauth-client-java

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

Workaround

Currently, there are no specific workarounds provided for this vulnerability. The best course of action is to update the package to the patched version as mentioned above.

Conclusion

The Google OAuth Client Java package has a critical vulnerability due to the improper implementation of PKCE, which can lead to unauthorized access to protected resources. It is crucial for developers to update to the patched version to mitigate this risk. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in open-source software effectively.

See every vulnerability recorded for google-oauth-client-java →

Share this vulnerability

FAQ

PKCE, or Proof Key for Code Exchange, is a security extension for OAuth 2.0 that helps prevent authorization code interception attacks. It ensures that the authorization code can only be exchanged by the client that initiated the request.

If this vulnerability is not addressed, attackers could potentially gain unauthorized access to sensitive user data by intercepting authorization codes, leading to data breaches and compromised user accounts.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By simply uploading your manifest file like package-lock.json, you can check for vulnerabilities without needing to access the code.

While there are no specific workarounds, it is advisable to limit the exposure of your application and monitor for any suspicious activity until the package can be updated.

Detailed information about this vulnerability can be found in the Debian CVE database, specifically under DEBIAN-CVE-2020-7692.

Related vulnerabilities

Recent vulnerabilities recorded for google-oauth-client-java.

How To Fix

Minimum fixed version

1.28.0-2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade google-oauth-client-java

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