# CVE-2021-46898: Django Grappelli Open Redirect vulnerability

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-10-22T00:00:00.000Z
- Modified: 2026-06-17T04:15:46.980Z
- Also known as: GHSA-9x43-5qcq-h79q, PYSEC-2023-211
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django-grappelli (PyPI): before 2.15.2; before 4ca94bcda0fa2720594506853d85e00c8212968f
- vonautomatisch django_grappelli: before 2.15.2

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/sehmaschine/django-grappelli/issues/975> (exploit, issue-tracking, report, web)
- <https://github.com/sehmaschine/django-grappelli/pull/976> (patch, web)
- <https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f> (fix, patch, web)
- <https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2> (release-notes, 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)

## Sources

- CVE List: [CVE-2021-46898](https://www.cve.org/CVERecord?id=CVE-2021-46898), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-9x43-5qcq-h79q](https://github.com/advisories/GHSA-9x43-5qcq-h79q), CC-BY-4.0, modified 2024-09-13
- NVD: [CVE-2021-46898](https://nvd.nist.gov/vuln/detail/CVE-2021-46898), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-211](https://osv.dev/vulnerability/PYSEC-2023-211), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2021-46898 · Whole record: https://cve.day/CVE-2021-46898.json · Rebuilt by cve.day 2026-11-25T22:58:08.519Z
