Intel

AIKIDO-2026-159864

django-oauth-toolkit is vulnerable to Open Redirect

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 28, 2026
July 28, 2026

61

CVE Score

Medium

Open Redirect

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.

How do I fix this?

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

Who does this affect?

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

Versions

2.4.0 - 3.3.0

Fixed in 3.4.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea