Update dependency oauthlib to v3.2.2 [SECURITY] #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==3.1.1
->==3.2.2
GitHub Vulnerability Alerts
CVE-2022-36087
Impact
uri_validate
functions depending where it is used.What kind of vulnerability is it? Who is impacted?
Oauthlib applications using OAuth2.0 provider support or use directly
uri_validate
function.Patches
Has the problem been patched? What versions should users upgrade to?
Issue fixed in 3.2.2 release.
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
The
redirect_uri
can be verified in web toolkit (i.ebottle-oauthlib
,django-oauth-toolkit
, ...) before oauthlib is called. A sample check if:
is present to reject the request can prevent the DoS, assuming no port or IPv6 is fundamentally required.References
Attack Vector:
https://github.com/oauthlib/oauthlib/blob/d4bafd9f1d0eba3766e933b1ac598cbbf37b8914/oauthlib/oauth2/rfc6749/grant_types/base.py#L232
uri_validate
functions:https://github.com/oauthlib/oauthlib/blob/2b8a44855a51ad5a5b0c348a08c2564a2e197ea2/oauthlib/uri_validate.py
PoC
Acknowledgement
Special thanks to Sebastian Chnelik - PyUp.io
Release Notes
oauthlib/oauthlib (oauthlib)
v3.2.2
Compare Source
OAuth2.0 Provider:
v3.2.1
Compare Source
OAuth2.0 Provider:
OAuth1.0:
General:
v3.2.0
Compare Source
OAuth2.0 Client:
OAuth2.0 Provider:
OAuth2.0 Provider - OIDC:
refresh_id_token
AuthorizationCodeGrant modifiers (
token
,token_handler
,request
).General:
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.