PT-2023-12618 · Unknown · Django-Grappelli

Ksg97031

·

Published

2023-10-22

·

Updated

2024-01-11

·

CVE-2021-46898

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions django-grappelli versions prior to 2.15.2
Description The issue arises from the views/switch.py file in django-grappelli, which attempts to prevent external redirection by checking if a URL starts with /. However, this approach does not account for protocol-relative URLs, such as //example.com, making it vulnerable to attack.
Recommendations For versions prior to 2.15.2, update to version 2.15.2 or later to resolve the issue. As a temporary workaround, consider restricting the use of the views/switch.py file until a patch is available.

Exploit

Fix

Open Redirect

Weakness Enumeration

Related Identifiers

CVE-2021-46898
GHSA-9X43-5QCQ-H79Q
OPENSUSE-SU-2023:0384-1
OPENSUSE-SU-2024:0017-1
PYSEC-2023-211

Affected Products

Django-Grappelli