Advisory

GHSA-6565-fg86-6jcx

Also known as: CVE-2015-2241, PYSEC-2015-8

Summary

Django Cross-site Scripting Vulnerability

Details

Cross-site scripting (XSS) vulnerability in the contents function in admin/helpers.py in Django before 1.7.6 and 1.8 before 1.8b2 allows remote attackers to inject arbitrary web script or HTML via a model attribute in ModelAdmin.readonly_fields, as demonstrated by an @property.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-17 03:34 UTC
Modified
2025-02-19 05:36 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 1.7.6 (ecosystem)

Fixed versions

1.7.6

Fix

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

django

PyPI · All systems

Affected

  • introduced 1.8a1, fixed 1.8b2 (ecosystem)

Fixed versions

1.8b2

Fix

  • Fixed version 1.8b2
    pip install --upgrade django==1.8b2

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