Loading advisory.
Loading advisory.
OAuthLib vulnerable to DoS when attacker provides malicious IPV6 URI
Attacker providing malicious redirect uri can cause DoS to oauthlib's web application. Attacker can also leverage usage of uri_validate functions depending where it is used.
Published 2022-09-09 00:00 UTC · Modified 2025-04-22 17:22 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| oauthlib | PyPI | >= 3.1.1, < 3.2.2 git commits in https://github.com/oauthlib/oauthlib: < 2e40b412c844ecc4673c3fa3f72181f228bdbacd >= 3.1.1, < 3.2.1 versions 3.1.1, 3.2.0, 3.2.1 | 3.2.2, 2e40b412c844ecc4673c3fa3f72181f228bdbacd, 3.2.1 | pip install --upgrade 'oauthlib>=3.2.2'pip install --upgrade 'oauthlib>=2e40b412c844ecc4673c3fa3f72181f228bdbacd'pip install --upgrade 'oauthlib>=3.2.1' |
Attacker providing malicious redirect uri can cause DoS to oauthlib's web application.
Attacker can also leverage usage of 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.
Has the problem been patched? What versions should users upgrade to?
Issue fixed in 3.2.2 release.
Is there a way for users to fix or remediate the vulnerability without upgrading?
The redirect_uri can be verified in web toolkit (i.e bottle-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.
Attack Vector:
Attacker providing malicious redirect uri: https://github.com/oauthlib/oauthlib/blob/d4bafd9f1d0eba3766e933b1ac598cbbf37b8914/oauthlib/oauth2/rfc6749/grant_types/base.py#L232
Vulnerable uri_validate functions:
https://github.com/oauthlib/oauthlib/blob/2b8a44855a51ad5a5b0c348a08c2564a2e197ea2/oauthlib/uri_validate.py
is_absolute_uri("http://[:::::::::::::::::::::::::::::::::::::::]/path")Special thanks to Sebastian Chnelik - PyUp.io
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.018 on 2026-11-24 to 0.018 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.018 | first score | v2026.06.15 |
| 2026-11-26 | 0.018 | 0.018 | v2026.06.15 |