GitHub Advisoryadvisory · PyPI
GHSA-6565-fg86-6jcx Django Cross-site Scripting Vulnerability
MEDIUM
Official page ↗
- Aliases
- CVE-2015-2241
- Ecosystem
- PyPI
- Packages
- Django
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2023-08-04
Affected packages
• PyPI Django: < 1.7.6 → fixed in 1.7.6
• PyPI Django: >= 1.8a1, < 1.8b2 → fixed in 1.8b2
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 an `@property`.
Related
Alias · CVE (1)
- CVE-2015-2241 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… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-2241 advisory
- https://github.com/django/django/commit/2654e1b93923bac55f12b4e66c5e39b16695ace5 web
- https://github.com/django/django/commit/82c9169077a066995e3b00aac551bf1c8a89d98a web
- https://code.djangoproject.com/ticket/24461 web
- https://github.com/django/django package
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-8.yaml web
- https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109 web
- https://web.archive.org/web/20171112005349/http://www.securityfocus.com/bid/73095 web
- https://www.djangoproject.com/weblog/2015/mar/09/security-releases web
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:109 web