CVE-2021-46898: Django Grappelli Open Redirect vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.33458%
CWE
Published
10/22/2023
Updated
9/13/2024
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-grappelli | pip | >= 0, < 2.15.2 | 2.15.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the redirect URL validation logic in the switch_user view function. The original check (redirect_url.startswith('/')) was replaced with Django's secure url_has_allowed_host_and_scheme() in the patch. The function directly processes user-controlled redirect parameters and contained the flawed validation logic, making it the clear entry point for the open redirect vulnerability. The commit diff and CVE description explicitly reference this function as the vulnerable component.