{"id":"CVE-2015-2241","published":"2015-03-12T14:00:00Z","modified":"2024-08-06T05:10:15Z","title":"Cross-site scripting (XSS) vulnerability in the contents function in admin/helpers.py in Django before 1.7.6 and 1.8…","vendor":null,"product":null,"tier":"tail","description":{"text":"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 a @property.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02061,"percentile":0.81806,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/73095","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://code.djangoproject.com/ticket/24461","tags":["x_refsource_CONFIRM"]},{"url":"https://www.djangoproject.com/weblog/2015/mar/09/security-releases/","tags":["x_refsource_CONFIRM"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:109","tags":["vendor-advisory","x_refsource_MANDRIVA"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":16.36}]},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":["<1.7.6",">=1.8a1, <1.8b2"],"patched":["1.7.6","1.8b2"],"from":["GHSA-6565-fg86-6jcx","PYSEC-2015-8"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the contents function in admin/helpers.py of Django, affecting versions before 1.7.6 and 1.8 before 1.8b2. It arises when a model attribute listed in ModelAdmin.readonly_fields, such as a @property, is rendered without proper escaping. An attacker can inject arbitrary web script or HTML through that attribute.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:28Z"},"euvd":{"id":"EUVD-2015-0017","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-cve-2015-2241","children":[{"from":"CVE-2015-2241","to":"CVE-2018-16984","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/contrib/admin/helpers.py"],"commits":["https://github.com/django/django/commit/2654e1b93923bac55f12b4e66c5e39b16695ace5","https://github.com/django/django/commit/82c9169077a066995e3b00aac551bf1c8a89d98a","https://github.com/django/django/commit/bf39978a53f117ca02e9a0c78b76664a41a54745"],"basis":"shared function","functions":["contents"]}]}],"packageHistory":[{"cve":"CVE-2015-0221","published":"2015-01-16","fixed":"1.7.3","kev":false},{"cve":"CVE-2015-0222","published":"2015-01-16","fixed":"1.7.3","kev":false},{"cve":"CVE-2015-5964","published":"2015-08-24","fixed":"1.7.10","kev":false},{"cve":"CVE-2015-2241","published":"2015-03-12","fixed":"1.8b2","kev":false},{"cve":"CVE-2015-2316","published":"2015-03-25","fixed":"1.8c1","kev":false,"link":{"from":"CVE-2015-2241","to":"CVE-2015-2316","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"1.7.6","toFixed":"1.7.7","daysApart":13}]}},{"cve":"CVE-2015-2317","published":"2015-03-25","fixed":"1.8c1","kev":false,"link":{"from":"CVE-2015-2241","to":"CVE-2015-2317","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"1.7.6","toFixed":"1.7.7","daysApart":13}]}},{"cve":"CVE-2015-3982","published":"2015-06-02","fixed":"1.8.2","kev":false}],"package":"PyPI:Django"}}