CWE
79
Advisory Published
Advisory Published
Updated

CVE-2015-2241: XSS

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 SoftwareAffected VersionHow 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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2015-2241?

    CVE-2015-2241 is classified as a medium severity vulnerability due to the potential for cross-site scripting (XSS) attacks.

  • How do I fix CVE-2015-2241?

    To fix CVE-2015-2241, upgrade Django to version 1.7.6 or 1.8b2 or later.

  • What types of applications are affected by CVE-2015-2241?

    CVE-2015-2241 affects Django applications that utilize the ModelAdmin.readonly_fields feature.

  • Can CVE-2015-2241 allow attackers to execute scripts?

    Yes, CVE-2015-2241 allows remote attackers to inject arbitrary web scripts or HTML into affected applications.

  • Which versions of Django are vulnerable to CVE-2015-2241?

    Versions of Django prior to 1.7.6 and 1.8 before 1.8b2 are vulnerable to CVE-2015-2241.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203