Django Cross-site Scripting Vulnerability
Date: 2022-05
Affected: pip/django, pip/django
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2015-2241
CVE-2016-6186
CWE: CWE-79
CVSS: 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)

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`.


Mitigations:

Architectural layers (MAESTRO):