PyPI: django

CVE-2015-2316

Safety vulnerability ID: SFTY-20150325-29053

Safety legacy ID: pyup.io-25731

The utils.html.strip_tags function in Django 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1, when using certain versions of Python, allows remote attackers to cause a denial of service (infinite loop) by increasing the length of the input string.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Django Denial-of-service possibility with strip_tags

Advisory

The utils.html.strip_tags function in Django 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1, when using certain versions of Python, allows remote attackers to cause a denial of service (infinite loop) by increasing the length of the input string.

Affected Package

Affecting django package, versions>=1.8a1,<1.8c1>=1.7a1,<1.7.7>=1.6a1,<1.6.11

Also affects

---

How to Fix

Upgradedjangoto1.8rc11.7.71.6.11or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more