CVE-2021-46898Vonautomatisch Django Grappelli
Medium 6.1 No auth needed
Follow: this CVE · Vonautomatisch · Vonautomatisch Django Grappelli We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 40
- Auth required
- No
- Published
- Oct 22, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-601
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django Grappelli.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django-grappelli |
< 2.15.2 |
2.15.2 |
pip install "django-grappelli>=2.15.2" |
| PyPI | django-grappelli |
< 2.15.2 |
2.15.2 |
pip install "django-grappelli>=2.15.2" |
Per OSV / GitHub Advisories (GHSA-9x43-5qcq-h79q, PYSEC-2023-211). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vonautomatisch | django_grappelli | < 2.15.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Release Notes
- github.com Exploit Issue Tracking
- github.com Patch