Advisory

PYSEC-2013-21

Also known as: CVE-2013-6044, GHSA-9cwg-mhxf-hh59

Summary

The record has no summary.

Details

The is_safe_url function in utils/http.py in Django 1.4.x before 1.4.6, 1.5.x before 1.5.2, and 1.6 before beta 2 treats a URL's scheme as safe even if it is not HTTP or HTTPS, which might introduce cross-site scripting (XSS) or other vulnerabilities into Django applications that use this function, as demonstrated by "the login view in django.contrib.auth.views" and the javascript: scheme.

Severity

Not rated by the source.

Dates

Published
2013-10-04 17:55 UTC
Modified
2026-06-10 17:00 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.4, fixed 1.4.6, introduced 1.5, fixed 1.5.2 (ecosystem)

Fixed versions

1.4.6, 1.5.2

Fix

  • Fixed version 1.4.6
    pip install --upgrade django==1.4.6
  • Fixed version 1.5.2
    pip install --upgrade django==1.5.2

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