CVE-2021-46898 json
Django Grappelli Open Redirect vulnerability
published 2023-10-22 3 y ago modified 2026-06-17 4 mo ago also GHSA-9x43-5qcq-h79q , PYSEC-2023-211 , EUVD-2023-0062
- cvss
- 6.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django-grappelli 2.15.2
- vonautomatisch django_grappelli 2.15.2
- python-django-grappelli Package Hub 15 SP5, openSUSE Leap 15.5 2.14.4-bp155.3.3.1
- python-django-grappelli Package Hub 15 SP4, openSUSE Leap 15.4 2.14.4-bp154.2.3.1
opensuse advisories openSUSE-SU-2024:0017-1openSUSE-SU-2023:0384-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.56% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/sehmaschine/django-grappelli/issues/975 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django-grappelli | <2.15.2 |
2.15.2 |
Classification
- Weakness
-
- CWE-601 URL Redirection to Untrusted Site
References
-
github.com
/sehmaschine/django-grappelli/pull/976
web, patch
-
github.com
/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f
web, patch
-
github.com
/sehmaschine/django-grappelli/issues/975
web, exploit, issue-tracking, report
-
github.com
/sehmaschine/django-grappelli/compare/2.15.1...2.15.2
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2021-46898
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml
web
-
github.com
/sehmaschine/django-grappelli
package
-
github.com
/advisories/GHSA-9x43-5qcq-h79q
advisory
Sources
- CVE List CVE-2021-46898
- GitHub Advisory GHSA-9x43-5qcq-h79q
- NVD CVE-2021-46898
- OSV PYSEC-2023-211
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.