CVE-2021-46898
MEDIUM 6.1CVSS 3.1Django Grappelli Open Redirect vulnerability
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.
- Published
- 22 Oct 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-601
- Also known as
- GHSA-9x43-5qcq-h79qPYSEC-2023-211
- Sources
- NVDJSONOSV GHSA-9x43-5qcq-h79qJSONOSV PYSEC-2023-211JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vonautomatisch | django_grappellicpe:2.3:a:vonautomatisch:django_grappelli:*:*:*:*:*:*:*:* |
< 2.15.2 | 2.15.2 |
| OSV | PyPI | django-grappelli | < 2.15.2 | 2.15.2 |
References
- https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f · Patch, WEB, FIX
- https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2 · Release Notes, WEB
- https://github.com/sehmaschine/django-grappelli/issues/975 · Exploit, Issue Tracking, WEB, REPORT
- https://github.com/sehmaschine/django-grappelli/pull/976 · Patch, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-46898 · ADVISORY
- 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/advisories/GHSA-9x43-5qcq-h79q · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 22 Oct 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Oct 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Oct 2023)