# Django Vulnerable to Allocation of Resources Without Limits or Throttling

Advisory record · `GHSA-p3fp-8748-vqfq`

- **Identifiers:** `GHSA-p3fp-8748-vqfq` · `BIT-django-2025-26699` · `CVE-2025-26699` · `PYSEC-2025-13`
- **State:** Confirmed
- **Severity:** CVSS 5.0 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-770](https://cwe.mitre.org/data/definitions/770.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 6 Mar 2025
- **Updated:** 4 Nov 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 Mar 2025, 21:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `django` (PyPI): affected `>=4.2, <4.2.20 || >=5.0, <5.0.13 || >=5.1, <5.1.7`; fixed in `4.2.20`, `5.0.13`, `5.1.7`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Django versions 4.2 before 4.2.20, 5.0 before 5.0.13, and 5.1 before 5.1.7 are vulnerable. The django.utils.text.wrap() method and the wordwrap template filter can be driven into a denial-of-service condition when given very long strings. Upgrade to Django 4.2.20, 5.0.13, 5.1.7, or later. The source gives few details on the exact attack conditions.

Written 5 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.0 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L`, from CNA (mitre)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0083, the 58th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 6 Mar 2025, 21:31 UTC: [Confirmed by GitHub Advisory Database](https://github.com/advisories/GHSA-p3fp-8748-vqfq)
- 31 Oct 2026, 14:37 UTC: First seen by agentprime
- 31 Oct 2026, 14:37 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-p3fp-8748-vqfq)

## Sources

- [GitHub Advisory Database: GHSA-p3fp-8748-vqfq](https://github.com/advisories/GHSA-p3fp-8748-vqfq)
- [OSV: GHSA-p3fp-8748-vqfq](https://osv.dev/vulnerability/GHSA-p3fp-8748-vqfq)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-26699>
- <https://github.com/django/django/commit/4f2765232336b8ad0afd8017d9d912ae93470017>
- <https://github.com/django/django/commit/8dbb44d34271637099258391dfc79df33951b841>
- <https://github.com/django/django/commit/e88f7376fe68dbf4ebaf11fad1513ce700b45860>
- <https://docs.djangoproject.com/en/dev/releases/security>
- <https://github.com/django/django>
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-13.yaml>
- <https://groups.google.com/g/django-announce>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00012.html>
- <https://www.djangoproject.com/weblog/2025/mar/06/security-releases>
- <http://www.openwall.com/lists/oss-security/2025/03/06/12>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-p3fp-8748-vqfq>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-p3fp-8748-vqfq/>. Everything for agents: <https://agentprime.io/llms.txt>.
