Advisory

GHSA-9cwg-mhxf-hh59

Also known as: CVE-2013-6044, PYSEC-2013-21

Summary

Django cross-site scripting (XSS) vulnerability via is_safe_url function

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

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 00:23 UTC
Modified
2025-02-19 05:40 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 1.4, fixed 1.4.6 (ecosystem)

Fixed versions

1.4.6

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.5, fixed 1.5.2 (ecosystem)

Fixed versions

1.5.2

Fix

  • 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences