sehmaschine/django-grappelli · Security
Django Grappelli Open Redirect vulnerability
- GHSA ID
- GHSA-9x43-5qcq-h79q
- CVE ID
- CVE-2021-46898
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v4
- 5.3 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
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.
CWEs
- CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-46898 ↗
- https://github.com/sehmaschine/django-grappelli/issues/975 ↗
- https://github.com/sehmaschine/django-grappelli/pull/976 ↗
- https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f ↗
- https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml ↗
- https://github.com/advisories/GHSA-9x43-5qcq-h79q ↗