First published: Thu Mar 12 2015(Updated: )
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`.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
pip/django | <1.7.6 | 1.7.6 |
pip/django | >=1.8a1<1.8b2 | 1.8b2 |
Django | <=1.7.5 | |
Django | =1.8-beta1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2015-2241 is classified as a medium severity vulnerability due to the potential for cross-site scripting (XSS) attacks.
To fix CVE-2015-2241, upgrade Django to version 1.7.6 or 1.8b2 or later.
CVE-2015-2241 affects Django applications that utilize the ModelAdmin.readonly_fields feature.
Yes, CVE-2015-2241 allows remote attackers to inject arbitrary web scripts or HTML into affected applications.
Versions of Django prior to 1.7.6 and 1.8 before 1.8b2 are vulnerable to CVE-2015-2241.