Skip to content
OpenAdvisories
Medium · 6.1 CVE-2021-46898 EUVD-2023-0062GHSA-9x43-5qcq-h79qPYSEC-2023-211

Django Grappelli Open Redirect vulnerability

Published Oct 22, 2023 · Updated Sep 16, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 python-django-grappelli 2.14.4-bp155.3.3.1 openSUSE-SU-2024:0017-1
SUSE Package Hub 15 SP4 python-django-grappelli 2.14.4-bp154.2.3.1 openSUSE-SU-2023:0384-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 python-django-grappelli 2.14.4-bp155.3.3.1 openSUSE-SU-2024:0017-1
openSUSE Leap 15.4 python-django-grappelli 2.14.4-bp154.2.3.1 openSUSE-SU-2023:0384-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django-grappelli < 2.15.2 2.15.2 GHSA-9x43-5qcq-h79q

Advisories 2

References