CVEvulnerability
CVE-2021-46898
6.1 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2023-10-22
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 6.1 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-601
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.
Affected configurations
• vonautomatisch django grappelli (< 2.15.2)
Related
Weakness · CWE (1)
- CWE-601 URL Redirection to Untrusted Site weakness
References
- https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f Patch
- https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2 Release Notes
- https://github.com/sehmaschine/django-grappelli/issues/975 Exploit, Issue Tracking
- https://github.com/sehmaschine/django-grappelli/pull/976 Patch
- https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f Patch
- https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2 Release Notes
- https://github.com/sehmaschine/django-grappelli/issues/975 Exploit, Issue Tracking
- https://github.com/sehmaschine/django-grappelli/pull/976 Patch