GHSA-9x43-5qcq-h79q
Django Grappelli Open Redirect vulnerability
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| PyPI | django-grappelli | < 2.15.2 | 2.15.2 |
Details
As written in the advisory (Markdown source, shown as plain text).
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.
References
External links from the advisory. They lead to third-party sites.
- 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/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml
- https://github.com/sehmaschine/django-grappelli
- https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2