Intel

AIKIDO-2026-159864

django-oauth-toolkit is vulnerable to Open Redirect

Open Redirect Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

61

Medium Risk

This Affects:

PYTHONdjango-oauth-toolkit
2.4.0 - 3.3.0
Fixed in 3.4.0
Are you affected? Scan for Free

TL;DR

The authorization endpoint sends an unauthenticated prompt=none request to the supplied redirect_uri with a login_required error before the client and redirect_uri are validated against a registered application. Because only the URI scheme is checked, an attacker can craft an authorization link that redirects a victim's browser to an arbitrary attacker-controlled origin, enabling phishing and credential harvesting. The fix validates the request against a registered client first and only redirects to the oauthlib-validated redirect_uri, otherwise falling back to a non-redirecting error response.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

django-oauth-toolkit is vulnerable to Open Redirect in versions 2.4.0 - 3.3.0.

How to fix this

Upgrade the django-oauth-toolkit library to the patch version.