Advisory

PYSEC-2026-631

Also known as: CVE-2022-0869, GHSA-5p9j-w2wx-qx4c

Summary

Open Redirect in django-spirit

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.

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:00 UTC

Affected packages and fixes

django-spirit

PyPI · All systems

Affected

  • introduced 0, fixed 0.12.3 (ecosystem)

Fixed versions

0.12.3

Fix

  • Fixed version 0.12.3
    pip install --upgrade django-spirit==0.12.3

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: PyPA Advisory Database · CC BY 4.0

Sources & licences