Django: XSS attack via properties in ModelAdmin.readonly_fields
Published Mar 12, 2015
5.3
MEDIUMCVSS 4.0
EPSS 2.07%
Description
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.
Affected products
No data.
- ≤ 1.7.5
- 1.8
No data.
Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse)
python-django
Not affected
Red Hat Enterprise Linux OpenStack Platform 6 (Juno)
python-django
Not affected
Red Hat OpenStack Platform 4
Django14
Not affected
Red Hat Subscription Asset Manager
Django
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) | python-django | Not affected | n/a |
| Red Hat Enterprise Linux OpenStack Platform 6 (Juno) | python-django | Not affected | n/a |
| Red Hat OpenStack Platform 4 | Django14 | Not affected | n/a |
| Red Hat Subscription Asset Manager | Django | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
Not vulnerable. The 1.7 and 1.8 versions of Django are not shipped in any Red Hat product as of March 2015.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (10 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.07% (0.02069) | 80.74th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.07% (0.02066) | 78.84th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.36% (0.00361) | 56.09th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.25% (0.00247) | 65.28th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.25% (0.00247) | 63.77th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.25% (0.00247) | 60.82th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.21% (0.01213) | 66.61th | v2 (v2022.01.01) |
| Feb 17, 2023 | 1.21% (0.01213) | 66.22th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.21% (0.01213) | 64.21th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.21% (0.01213) | 40.54th | v2 (v2022.01.01) |
References (14)
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:109 vendor-advisoryx_refsource_MANDRIVA
- http://www.securityfocus.com/bid/73095 vdb-entryx_refsource_BID
- https://access.redhat.com/security/cve/CVE-2015-2241 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1200922 Issue Tracking
- https://code.djangoproject.com/ticket/24461 x_refsource_CONFIRMExploitVendor Advisory
- https://github.com/advisories/GHSA-6565-fg86-6jcx Advisory
- https://github.com/django/django/commit/2654e1b93923bac55f12b4e66c5e39b16695ace5
- https://github.com/django/django/commit/82c9169077a066995e3b00aac551bf1c8a89d98a
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-8.yaml
- https://nvd.nist.gov/vuln/detail/CVE-2015-2241
- https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109
- https://web.archive.org/web/20171112005349/http://www.securityfocus.com/bid/73095
- https://www.cve.org/CVERecord?id=CVE-2015-2241
- https://www.djangoproject.com/weblog/2015/mar/09/security-releases x_refsource_CONFIRMVendor Advisory
Change history (0)
No recorded changes yet.