{"id":"CVE-2021-46898","aliases":["CVE-2021-46898","GHSA-9x43-5qcq-h79q","PYSEC-2023-211"],"related":[],"kind":"vulnerability","state":"published","title":"Django Grappelli Open Redirect vulnerability","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"views/switch.py en django-grappelli (también conocido como Django Grappelli) anterior a 2.15.2 intenta evitar la redirección externa con startwith(\"/\") pero esto no considera un ataque de URL relativo al protocolo (por ejemplo, //example.com) .","source":"nvd"}],"published":"2023-10-22T00:00:00.000Z","modified":"2026-06-17T04:15:46.980Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.15.2"}],"ecosystem":"PyPI","package":"django-grappelli","purl":"pkg:pypi/django-grappelli","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.15.2"}],"vendor":"vonautomatisch","product":"django_grappelli","cpe":"cpe:2.3:a:vonautomatisch:django_grappelli:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"4ca94bcda0fa2720594506853d85e00c8212968f"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.15.2"}],"ecosystem":"PyPI","package":"django-grappelli","purl":"pkg:pypi/django-grappelli","repo":"https://github.com/sehmaschine/django-grappelli","source":"pysec"}],"references":[{"url":"https://github.com/sehmaschine/django-grappelli/issues/975","tags":["exploit","issue-tracking","report","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/sehmaschine/django-grappelli/pull/976","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2","tags":["release-notes","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46898","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sehmaschine/django-grappelli","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-9x43-5qcq-h79q","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-09-16T13:10:56.309Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46898","url":"https://www.cve.org/CVERecord?id=CVE-2021-46898","licence":"CVE Terms of Use","modified":"2024-09-16T13:11:11.083Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9x43-5qcq-h79q","url":"https://github.com/advisories/GHSA-9x43-5qcq-h79q","licence":"CC-BY-4.0","modified":"2024-09-13T20:24:36.552Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46898","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46898","licence":"Public domain","modified":"2026-06-17T04:15:46.980Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-211","url":"https://osv.dev/vulnerability/PYSEC-2023-211","licence":"CC-BY-4.0","modified":"2026-06-10T17:00:48.889Z"}],"updatedAt":"2026-11-25T22:58:08.519Z","epss":{"score":0.00555,"percentile":0.47684,"date":"2026-12-01T12:00:22.000Z"}}