GitHub Advisoryadvisory · PyPI
GHSA-9x43-5qcq-h79q Django Grappelli Open Redirect vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2021-46898
- Ecosystem
- PyPI
- Packages
- django-grappelli
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-601
- Reviewed
- 2023-10-24
Affected packages
• PyPI django-grappelli: < 2.15.2 → fixed in 2.15.2
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.
Related
Alias · CVE (1)
- CVE-2021-46898 views/switch.py in django-grappelli (aka Django Grappelli) before 2.15.2 attempts to prevent external redirection with startswith("/") but… vulnerability
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-46898 advisory
- https://github.com/sehmaschine/django-grappelli/issues/975 web
- https://github.com/sehmaschine/django-grappelli/pull/976 web
- https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f web
- https://github.com/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml web
- https://github.com/sehmaschine/django-grappelli package
- https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2 web