{"id":"CVE-2021-46898","details":"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.","aliases":["GHSA-9x43-5qcq-h79q","PYSEC-2023-211"],"modified":"2026-07-09T06:37:12.171208Z","published":"2023-10-22T19:15:08.297Z","related":["openSUSE-SU-2023:0384-1","openSUSE-SU-2024:0017-1"],"references":[{"type":"ADVISORY","url":"https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2"},{"type":"REPORT","url":"https://github.com/sehmaschine/django-grappelli/issues/975"},{"type":"FIX","url":"https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f"},{"type":"FIX","url":"https://github.com/sehmaschine/django-grappelli/pull/976"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sehmaschine/django-grappelli","events":[{"introduced":"0"},{"fixed":"4713e35834ba7027087da2ad23988448fcd1b451"},{"fixed":"4ca94bcda0fa2720594506853d85e00c8212968f"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"cpe":"cpe:2.3:a:vonautomatisch:django_grappelli:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.15.2"}]}}],"versions":["2.15.1","2.14.4","2.14.3","2.14.2","2.14.1","2.13.3","2.13.2","2.13.1","2.12.3","2.12.2","2.12.1","2.11.3","2.11.2","2.11.1","2.10.2","2.10.1","2.8.2","2.8.1","2.7.3","2.7.2","2.7.1","2.6.4","2.6.3","2.6.2","2.6.1","2.5.3","2.5.2","2.5.1","2.5.0","2.4.7","2.4.6","2.4.5","2.4.4","2.3.8","2.3.7","2.3.6","2.3.5","2.3.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-46898.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}