Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-grappelli
  4. ›
  5. CVE-2021-46898

CVE-2021-46898: Django Grappelli Open Redirect vulnerability

October 22, 2023 (updated September 13, 2024)

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.

References

  • github.com/advisories/GHSA-9x43-5qcq-h79q
  • github.com/pypa/advisory-database/tree/main/vulns/django-grappelli/PYSEC-2023-211.yaml
  • github.com/sehmaschine/django-grappelli
  • github.com/sehmaschine/django-grappelli/commit/4ca94bcda0fa2720594506853d85e00c8212968f
  • github.com/sehmaschine/django-grappelli/compare/2.15.1...2.15.2
  • github.com/sehmaschine/django-grappelli/issues/975
  • github.com/sehmaschine/django-grappelli/pull/976
  • nvd.nist.gov/vuln/detail/CVE-2021-46898

Code Behaviors & Features

Detect and mitigate CVE-2021-46898 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.15.2

Fixed versions

  • 2.15.2

Solution

Upgrade to version 2.15.2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

pypi/django-grappelli/CVE-2021-46898.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:13 +0000.