VDB
Sign up
MEDIUM6.1

PYSEC-2026-631

Open Redirect in django-spirit

Quick fix

PYSEC-2026-631 — django-spirit: upgrade to the fixed version with the command below.

pip install --upgrade 'django-spirit>=0.12.3'

Details

django-spirit prior to version 0.12.3 is vulnerable to open redirect. In the /user/login endpoint, it doesn't check the value of the next parameter when the user is logged in and passes it directly to redirect which result to open redirect. This also affects /user/logout, /user/register, /user/login, /user/resend-activation.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/django-spirit
Introduced in: 0Fixed in: 0.12.3
Fixpip install --upgrade 'django-spirit>=0.12.3'

References