Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-46898
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:04 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-46898
Complete source record
{
"id": "ad6844366dadb4f1030f898d8d52a06c625997f11a43f048ab11299d0622b581",
"url": "https://osv.dev/vulnerability/CVE-2021-46898",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-46898",
"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.",
"evidence": "osv:CVE-2021-46898",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-46898",
"aliases": [
"CVE-2021-46898",
"GHSA-9x43-5qcq-h79q",
"PYSEC-2023-211"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/sehmaschine/django-grappelli",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4713e35834ba7027087da2ad23988448fcd1b451"
},
{
"fixed": "4ca94bcda0fa2720594506853d85e00c8212968f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:vonautomatisch:django_grappelli:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.15.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "4ca94bcda0fa2720594506853d85e00c8212968f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"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"
}
}
],
"modified": "2026-10-20T10:55:11.749662853Z",
"provider": "osv",
"references": [
"https://github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2",
"https://github.com/sehmaschine/django-grappelli/issues/975",
"https://github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f",
"https://github.com/sehmaschine/django-grappelli/pull/976"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-46898",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387047,
"published_at": "2023-10-22T19:15:08.297+00:00"
}