Denial of Service Vulnerability in Python OAuthLib - CVE-2022-36087

python-oauthlib Updated 02 Oct 2025

Summary

09/09/2022
N/A
Yes i
Medium
6.5

UBUNTU-CVE-2022-36087: OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. Affects python-oauthlib versions < 3.2.0-1ubuntu0.1. Fixed in 3.2.0-1ubuntu0.1. 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

Python OAuthLib is a library that implements OAuth request-signing logic for Python applications, specifically designed for versions 3.6 and above. It allows developers to integrate OAuth 2.0 authentication into their applications, providing a secure method for users to authorize third-party access to their resources without sharing their credentials. The library is widely used in various applications that require secure user authentication and authorization.

Vulnerability Detail

The vulnerability identified as CVE-2022-36087 affects OAuthLib versions 3.1.1 through 3.2.1. It arises from the handling of malicious redirect URIs, which can lead to a denial of service (DoS) attack. An attacker can exploit this vulnerability by providing a specially crafted redirect URI that causes the application to become unresponsive. This issue is particularly concerning for applications that utilize OAuth 2.0 provider support or directly use the 'uri_validate' functions, as they are susceptible to this attack. The vulnerability has a CVSS score of 6.5, indicating a medium severity level.

How To Fix

Minimum fixed version

3.2.0-1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-oauthlib

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

Workaround

There are no known workarounds for this vulnerability. The best course of action is to update to the patched version as mentioned above.

Conclusion

CVE-2022-36087 represents a significant vulnerability in the Python OAuthLib library that can lead to denial of service attacks. Users are strongly encouraged to update to the latest patched version to mitigate this risk. Regular monitoring and updates are essential to maintaining the security of applications that rely on OAuth for user authentication.

See every vulnerability recorded for python-oauthlib →

Share this vulnerability

FAQ

CVE-2022-36087 is a vulnerability in the Python OAuthLib library that can lead to denial of service due to improper handling of malicious redirect URIs.

OAuthLib versions 3.1.1 through 3.2.1 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

It is recommended to prioritize updating the package to the patched version as soon as possible, as there are no known workarounds for this vulnerability.

Vulert is a service that monitors and alerts in real-time for open-source vulnerabilities in software using a manifest file like package-lock.json, providing an easy way to stay informed about potential security issues.

Related vulnerabilities

Recent vulnerabilities recorded for python-oauthlib.

How To Fix

Minimum fixed version

3.2.0-1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-oauthlib

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