Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2015-2241

CVE-2015-2241: Django Cross-site Scripting Vulnerability

May 17, 2022 (updated September 18, 2024)

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.

References

  • code.djangoproject.com/ticket/24461
  • github.com/advisories/GHSA-6565-fg86-6jcx
  • github.com/django/django
  • github.com/django/django/commit/2654e1b93923bac55f12b4e66c5e39b16695ace5
  • github.com/django/django/commit/82c9169077a066995e3b00aac551bf1c8a89d98a
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-8.yaml
  • nvd.nist.gov/vuln/detail/CVE-2015-2241
  • web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109
  • web.archive.org/web/20171112005349/http://www.securityfocus.com/bid/73095
  • www.djangoproject.com/weblog/2015/mar/09/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2015-2241 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.8a1 before 1.8b2, all versions before 1.7.6

Fixed versions

  • 1.7.6
  • 1.8b2

Solution

Upgrade to versions 1.7.6, 1.8b2 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/Django/CVE-2015-2241.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:17 +0000.