VDB
Sign up
MEDIUM6.5

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: 2e40b412c844ecc4673c3fa3f72181f228bdbacd
Fixpip install --upgrade 'oauthlib>=2e40b412c844ecc4673c3fa3f72181f228bdbacd'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/oauthlib"]}'