---
id: CVE-2025-26699
aliases:
  - GHSA-p3fp-8748-vqfq
  - BIT-django-2025-26699
  - PYSEC-2025-13
title: Django vulnerable to Allocation of Resources Without Limits or Throttling
summary: Django vulnerable to Allocation of Resources Without Limits or Throttling
severity: medium
cvss: 5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L'
vendor: django
product: django
ecosystem: pip
affected:
  - 'django >= 4.2, < 4.2.20'
  - 'django >= 5.0, < 5.0.13'
  - 'django >= 5.1, < 5.1.7'
patched:
  - django 4.2.20
  - django 5.0.13
  - django 5.1.7
published: '2025-03-06'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:48.467618972Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-p3fp-8748-vqfq'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-26699'
  - url: 'https://docs.djangoproject.com/en/dev/releases/security'
  - url: 'https://github.com/django/django'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-13.yaml
  - url: 'https://groups.google.com/g/django-announce'
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00012.html'
  - url: 'https://www.djangoproject.com/weblog/2025/mar/06/security-releases'
  - url: 'http://www.openwall.com/lists/oss-security/2025/03/06/12'
tags:
  - osv
  - pip
epss: 0.00813
epssPercentile: 0.55135
ingestedAt: '2026-09-12T03:13:01.714Z'
---

## Overview

An issue was discovered in Django 5.1 before 5.1.7, 5.0 before 5.0.13, and 4.2 before 4.2.20. The django.utils.text.wrap() method and wordwrap template filter are subject to a potential denial-of-service attack when used with very long strings.

## Affected packages

- `django >= 4.2, < 4.2.20`
- `django >= 5.0, < 5.0.13`
- `django >= 5.1, < 5.1.7`

## Remediation

Upgrade to a patched release:

- `django 4.2.20`
- `django 5.0.13`
- `django 5.1.7`
