Advisory

GHSA-9x43-5qcq-h79q

Also known as: CVE-2021-46898, PYSEC-2023-211

Summary

Django Grappelli Open Redirect vulnerability

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-10-22 21:36 UTC
Modified
2024-09-13 20:24 UTC

Affected packages and fixes

django-grappelli

PyPI · All systems

Affected

  • introduced 0, fixed 2.15.2 (ecosystem)

Fixed versions

2.15.2

Fix

  • Fixed version 2.15.2
    pip install --upgrade django-grappelli==2.15.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences