CVE-2021-46898 Django Grappelli Open Redirect vulnerability
Attackers can redirect users to malicious sites via protocol-relative URLs in Django Grappelli due to insufficient validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-46898?
CVE-2021-46898 is a medium-severity vulnerability in n/a, published on 22 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
views/switch.py in django-grappelli (aka Django Grappelli) before 2.15.2 attempts to prevent external redirection with startswith("/") but this does not consider a protocol-relative URL (e.g., //example.com) attack.
Weakness: CWE-601
Which versions are affected by CVE-2021-46898?
3 open source packages ship an affected version, including django-grappelli. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
django-grappelli PyPI | All versions | 2.15.2 |
django-grappelli PyPI | All versions | 2.15.2 |
django-grappelli PyPI | All versions | 2.15.2 |
Linux distribution packages (4)
python-django-grappelli SUSE:Package Hub 15 SP4 | All versions | 2.14.4-bp154.2.3.1 |
python-django-grappelli SUSE:Package Hub 15 SP5 | All versions | 2.14.4-bp155.3.3.1 |
python-django-grappelli openSUSE:Leap 15.4 | All versions | 2.14.4-bp154.2.3.1 |
python-django-grappelli openSUSE:Leap 15.5 | All versions | 2.14.4-bp155.3.3.1 |
Products include Vonautomatisch Django Grappelli.
How do I fix CVE-2021-46898?
Upgrade django-grappelli to 2.15.2 or later.
Is CVE-2021-46898 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46898 exists.
Sources
Also known as GHSA-9x43-5qcq-h79q, PYSEC-2023-211, openSUSE-SU-2023:0384-1, openSUSE-SU-2024:0017-1.