VDB
Sign up
—

PYSEC-2023-211

Quick fix

PYSEC-2023-211 — django-grappelli: upgrade to the fixed version with the command below.

pip install --upgrade 'django-grappelli>=4ca94bcda0fa2720594506853d85e00c8212968f'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django-grappelli
Introduced in: 0Fixed in: 4ca94bcda0fa2720594506853d85e00c8212968f
Fixpip install --upgrade 'django-grappelli>=4ca94bcda0fa2720594506853d85e00c8212968f'

References