Live threats

All CVEs / Djangoproject

CVE-2015-2241Djangoproject Django

Medium 4.3 No auth needed

Priority
41
CVSS 2.0
4.3
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Mar 12, 2015
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N

What happens

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 a @property.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django < 1.7.6 1.7.6 pip install "django>=1.7.6"
PyPI django ≥ 1.8a1 < 1.8b2 1.8b2 pip install "django>=1.8b2"
PyPI django < 1.7.6 1.7.6 pip install "django>=1.7.6"
PyPI django ≥ 1.8a1 < 1.8b2 1.8b2 pip install "django>=1.8b2"

Per OSV / GitHub Advisories (GHSA-6565-fg86-6jcx, PYSEC-2015-8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≤ 1.7.5
djangoprojectdjango1.8

Official sources

References

Links published by the sources. Open them with care.