CVE-2021-46898
Vonautomatisch Django Grappelli 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.
Affected products
Django Grappelli. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Vonautomatisch Django Grappelli runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f · Patch
- github.com/sehmaschine/django-grappelli/pull/976 · Patch
- github.com/sehmaschine/django-grappelli/issues/975 · Exploit
- github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2
- nvd.nist.gov/vuln/detail/CVE-2021-46898
- github.com/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml
- github.com/advisories/GHSA-9x43-5qcq-h79q
- nvd.nist.gov/vuln/detail/CVE-2021-46898
- cve.org/CVERecord?id=CVE-2021-46898
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.