CVE-2022-0869: Open Redirect in django-spirit
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.87669%
CWE
Published
3/7/2022
Updated
2/3/2023
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
django-spirit | pip | < 0.12.3 | 0.12.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from direct use of Django's redirect() with user-controlled 'next' parameters without proper validation. The patch introduced a safe_redirect helper that implements url_has_allowed_host_and_scheme checks. The identified functions were all modified in the commit to replace raw redirect() calls with safe_redirect, indicating they previously lacked validation. These functions handle authentication-related flows (login/logout/registration) where the 'next' parameter is commonly used, making them prime targets for open redirect exploitation when unvalidated.