---
id: CVE-2022-0869
aliases:
  - GHSA-5p9j-w2wx-qx4c
  - PYSEC-2026-631
title: Open Redirect in django-spirit
summary: Open Redirect in django-spirit
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
vendor: django-spirit
product: django-spirit
ecosystem: pip
affected:
  - django-spirit < 0.12.3
patched:
  - django-spirit 0.12.3
published: '2022-03-07'
updated: '2026-07-06'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5p9j-w2wx-qx4c'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2022-0869'
  - url: >-
      https://github.com/nitely/spirit/commit/8f32f89654d6c30d56e0dd167059d32146fb32ef
  - url: 'https://github.com/nitely/spirit'
  - url: 'https://huntr.dev/bounties/ed335a88-f68c-4e4d-ac85-f29a51b03342'
tags:
  - osv
  - pip
  - exploit-available
epss: 0.02642
epssPercentile: 0.8497
ingestedAt: '2026-07-08T18:25:46.041Z'
exploits:
  nuclei:
    - CVE-2022-0869
  checkedAt: '2026-09-26T09:05:27.713Z'
exploitAvailable: true
---

## Overview

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.

## Affected packages

- `django-spirit < 0.12.3`

## Remediation

Upgrade to a patched release:

- `django-spirit 0.12.3`
