Advisory

PYSEC-2017-9

Also known as: CVE-2017-7233, GHSA-37hp-765x-j95x

Summary

The record has no summary.

Details

Django 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18 relies on user input in some cases to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.is_safe_url()) considered some numeric URLs "safe" when they shouldn't be, aka an open redirect vulnerability. Also, if a developer relies on is_safe_url() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.

Severity

Not rated by the source.

Dates

Published
2017-04-04 17:59 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.10, fixed 1.10.7, introduced 1.9, fixed 1.9.13, introduced 1.8, fixed 1.8.18 (ecosystem)

Fixed versions

1.10.7, 1.9.13, 1.8.18

Fix

  • Fixed version 1.10.7
    pip install --upgrade django==1.10.7
  • Fixed version 1.9.13
    pip install --upgrade django==1.9.13
  • Fixed version 1.8.18
    pip install --upgrade django==1.8.18

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