CVE-2015-2241Djangoproject Django
Medium 4.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≤ 1.7.5 |
| djangoproject | django | 1.8 |
Official sources
References
Links published by the sources. Open them with care.
- www.mandriva.com
- www.securityfocus.com
- code.djangoproject.com Exploit Vendor Advisory
- www.djangoproject.com Vendor Advisory