Description
OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. In OAuthLib versions 3.1.1 until 3.2.1, an attacker providing malicious redirect uri can cause denial of service. An attacker can also leverage usage of `uri_validate` functions depending where it is used. OAuthLib applications using OAuth2.0 provider support or use directly `uri_validate` are affected by this issue. Version 3.2.1 contains a patch. There are no known workarounds.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| oauthlib | oauthlib | >= 3.1.1, < 3.2.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-oauthlib | 3.2.1-1 | — |
| Debian 13 | python-oauthlib | 3.2.1-1 | — |
| Debian 12 | python-oauthlib | 3.2.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | python-oauthlib | 3.2.0-1ubuntu0.1 | USN-5632-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | fence-virt +55 | 4.10.0-43.el9 | RHSA-2023:2161 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | fence-virt +54 | 4.10.0-43.el9 | ALSA-2023:2161 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-oauthlib | 3.2.2-5.4 | openSUSE-SU-2025:15100-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | fence-virt +12 | 4.10.0-43.el9 | ELSA-2023-2161 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | oauthlib | >= 3.1.1, < 3.2.2 | 3.2.2 | GHSA-3pgj-pg6c-r5p7 |
| PyPI | oauthlib | >= 3.1.1, < 3.2.1 | 3.2.1 | PYSEC-2022-269 |
Advisories 8
- ALSA-2023:2161 Moderate: fence-agents security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2023:2161 Red Hat Security Advisory: fence-agents security and bug fix update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- WID-SEC-2023-1185 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 3, 2026
- USN-5632-1 python-oauthlib vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2025:15100-1 python311-oauthlib-3.2.2-5.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0561 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 18, 2023
- ELSA-2023-2161 Moderate: fence-agents security and bug fix update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 15, 2023
- WID-SEC-2022-2378 IBM Spectrum Protect: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Dec 20, 2022
References
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3pgj-pg6c-r5p7
- https://github.com/oauthlib/oauthlib/commit/2e40b412c844ecc4673c3fa3f72181f228bdbacd
- https://github.com/oauthlib/oauthlib/blob/2b8a44855a51ad5a5b0c348a08c2564a2e197ea2/oauthlib/uri_validate.py
- https://github.com/oauthlib/oauthlib/blob/d4bafd9f1d0eba3766e933b1ac598cbbf37b8914/oauthlib/oauth2/rfc6749/grant_types/base.py#L232
- https://github.com/oauthlib/oauthlib/releases/tag/v3.2.1
- FEDORA-2022-5a74a5eea7 vendor-advisory
- FEDORA-2023-da094276a2 vendor-advisory
- FEDORA-2023-49ded4c9a5 vendor-advisory
- FEDORA-2023-5ab7049a59 vendor-advisory