Critical Vulnerability in python-oauthlib: Denial of Service Risk

python-oauthlib Updated 03 Oct 2025

Summary

22/09/2022
N/A
Yes i
Unrated
Not published

USN-5632-1: python-oauthlib vulnerability. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

python-oauthlib is a popular library in the Python ecosystem that provides a generic, spec-compliant implementation of the OAuth request-signing logic. It is widely used for handling OAuth 1 and OAuth 2 authentication in web applications. The library is integral for developers looking to implement secure authorization flows in their applications. However, it has been found to have a vulnerability that can lead to service disruption.

Vulnerability Detail

Sebastian Chnelik discovered that OAuthLib incorrectly handled certain redirect URIs. This flaw allows a remote attacker to exploit the vulnerability, potentially causing OAuthLib to crash. The result is a denial of service, which can disrupt the availability of applications relying on this library. The vulnerability is identified as CVE-2022-36087 and affects versions prior to 3.2.0-1ubuntu0.1.

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

As a temporary measure, you can limit the use of redirect URIs in your application to trusted sources only. This may help mitigate the risk of exploitation until the package can be updated.

Conclusion

The vulnerability in python-oauthlib poses a significant risk of denial of service due to improper handling of redirect URIs. It is crucial for users of this library to update to the patched version to ensure the security and availability of their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for python-oauthlib →

Share this vulnerability

FAQ

The vulnerability allows for improper handling of redirect URIs, which can lead to a denial of service.

You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.

If exploited, this vulnerability can cause applications using python-oauthlib to crash, leading to service outages.

Yes, the patched version of python-oauthlib is 3.2.0-1ubuntu0.1, which addresses this vulnerability.

As a workaround, restrict the use of redirect URIs to trusted sources until you can apply the update.

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