—
PYSEC-2022-269
Quick fix
PYSEC-2022-269 — oauthlib: upgrade to the fixed version with the command below.
pip install --upgrade 'oauthlib>=2e40b412c844ecc4673c3fa3f72181f228bdbacd'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/oauthlib
Introduced in:
0Fixed in: 2e40b412c844ecc4673c3fa3f72181f228bdbacdFix
pip install --upgrade 'oauthlib>=2e40b412c844ecc4673c3fa3f72181f228bdbacd'References
- https://github.com/oauthlib/oauthlib/blob/2b8a44855a51ad5a5b0c348a08c2564a2e197ea2/oauthlib/uri_validate.py[WEB]
- https://github.com/oauthlib/oauthlib/releases/tag/v3.2.1[WEB]
- https://github.com/oauthlib/oauthlib/blob/d4bafd9f1d0eba3766e933b1ac598cbbf37b8914/oauthlib/oauth2/rfc6749/grant_types/base.py#L232[WEB]
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3pgj-pg6c-r5p7[ADVISORY]
- https://github.com/oauthlib/oauthlib/commit/2e40b412c844ecc4673c3fa3f72181f228bdbacd[FIX]