CVE-2025-32873
Python packages · CVE-2025-32873
An issue was discovered in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1. The django.utils.html.strip_tags() function is vulnerable to a potential denial-of-service (slow performance) when processing inputs containing large sequences of incomplete HTML tags. The template filter striptags is also vulnerable, because it is built on top of strip_tags().
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 14.310% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.3 · published by mitreCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:57:32.587Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:32.587Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.990Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:01.389Z | OSV |
| affected | verified | 2026-11-19T12:57:32.587Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:32.587Z | CVE Program |
Affected versions and configuration
djangoproject Django; default status: unknown: 4.2 to < 4.2.21 [affected; scheme: custom]; 5.1 to < 5.1.9 [affected; scheme: custom]; 5.2 to < 5.2.1 [affected; scheme: custom]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "djangoproject",
"product": "Django",
"versions": [
{
"status": "affected",
"version": "4.2",
"lessThan": "4.2.21",
"versionType": "custom"
},
{
"status": "affected",
"version": "5.1",
"lessThan": "5.1.9",
"versionType": "custom"
},
{
"status": "affected",
"version": "5.2",
"lessThan": "5.2.1",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2025/05/07/1"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-05-08T04:05:04.028Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-32873",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-05-08T14:36:22.376528Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-05-08T14:42:25.501Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-8j24-cjrq-gr2m",
"aliases": [
"BIT-django-2025-32873",
"CVE-2025-32873",
"PYSEC-2025-37"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.2"
},
{
"fixed": "4.2.21"
}
]
}
],
"package": {
"name": "django",
"purl": "pkg:pypi/django",
"ecosystem": "PyPI"
},
"versions": [
"4.2",
"4.2.1",
"4.2.10",
"4.2.11",
"4.2.12",
"4.2.13",
"4.2.14",
"4.2.15",
"4.2.16",
"4.2.17",
"4.2.18",
"4.2.19",
"4.2.2",
"4.2.20",
"4.2.3",
"4.2.4",
"4.2.5",
"4.2.6",
"4.2.7",
"4.2.8",
"4.2.9"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-8j24-cjrq-gr2m/GHSA-8j24-cjrq-gr2m.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.1"
},
{
"fixed": "5.1.9"
}
]
}
],
"package": {
"name": "django",
"purl": "pkg:pypi/django",
"ecosystem": "PyPI"
},
"versions": [
"5.1",
"5.1.1",
"5.1.2",
"5.1.3",
"5.1.4",
"5.1.5",
"5.1.6",
"5.1.7",
"5.1.8"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-8j24-cjrq-gr2m/GHSA-8j24-cjrq-gr2m.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.2"
},
{
"fixed": "5.2.1"
}
]
}
],
"package": {
"name": "django",
"purl": "pkg:pypi/django",
"ecosystem": "PyPI"
},
"versions": [
"5.2"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-8j24-cjrq-gr2m/GHSA-8j24-cjrq-gr2m.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-32873",
"type": "ADVISORY"
},
{
"url": "https://github.com/django/django/commit/9f3419b519799d69f2aba70b9d25abe2e70d03e0",
"type": "WEB"
},
{
"url": "https://docs.djangoproject.com/en/dev/releases/security",
"type": "WEB"
},
{
"url": "https://github.com/django/django",
"type": "PACKAGE"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-37.yaml",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/django-announce",
"type": "WEB"
},
{
"url": "https://www.djangoproject.com/weblog/2025/may/07/security-releases",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2025/05/07/1",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-770"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2025-05-08T04:17:18Z",
"github_reviewed_at": "2025-05-08T14:53:27Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "PYSEC-2025-37",
"aliases": [
"BIT-django-2025-32873",
"CVE-2025-32873",
"GHSA-8j24-cjrq-gr2m"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.2"
},
{
"fixed": "4.2.21"
},
{
"introduced": "5.1"
},
{
"fixed": "5.1.9"
},
{
"introduced": "5.2"
},
{
"fixed": "5.2.1"
}
]
}
],
"package": {
"name": "django",
"purl": "pkg:pypi/django",
"ecosystem": "PyPI"
},
"versions": [
"4.2",
"4.2.1",
"4.2.10",
"4.2.11",
"4.2.12",
"4.2.13",
"4.2.14",
"4.2.15",
"4.2.16",
"4.2.17",
"4.2.18",
"4.2.19",
"4.2.2",
"4.2.20",
"4.2.3",
"4.2.4",
"4.2.5",
"4.2.6",
"4.2.7",
"4.2.8",
"4.2.9",
"5.1",
"5.1.1",
"5.1.2",
"5.1.3",
"5.1.4",
"5.1.5",
"5.1.6",
"5.1.7",
"5.1.8",
"5.2"
],
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/django/PYSEC-2025-37.yaml"
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://www.djangoproject.com/weblog/2025/may/07/security-releases/",
"type": "ARTICLE"
},
{
"url": "https://docs.djangoproject.com/en/dev/releases/security/",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/django-announce",
"type": "WEB"
},
{
"url": "http://www.openwall.com/lists/oss-security/2025/05/07/1",
"type": "WEB"
},
{
"url": "https://github.com/advisories/GHSA-8j24-cjrq-gr2m",
"type": "ADVISORY"
}
],
"relatedGitRanges": [],
"database_specific": {}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | PyPI / package | django | Not a distribution channel | 4.2.21 | Official record |
| ecosystem-boundary | PyPI / package | django | Not a distribution channel | 5.1.9 | Official record |
| ecosystem-boundary | PyPI / package | django | Not a distribution channel | 5.2.1 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:01.389ZArchived source JSON
Source publication: 2025-05-08T06:30:33.000Z
Source modification: 2026-09-10T03:50:57.424ZDocument fingerprint
5a8be0996fde40ecda7b6ec330977c591c5041d8f88a9054d3364a892c671177 - OSVConsulted: 2026-11-19T12:52:01.389ZArchived source JSON
Source publication: 2025-05-08T04:17:18.000Z
Source modification: 2026-06-10T17:01:07.572ZDocument fingerprint
5a8be0996fde40ecda7b6ec330977c591c5041d8f88a9054d3364a892c671177 - CVE ProgramConsulted: 2026-11-19T12:57:32.587ZArchived source JSON
Source publication: 2025-05-08T00:00:00.000Z
Source modification: 2025-05-08T14:42:25.501ZDocument fingerprint
717f17b757d6fd492a13e093d30a7f2e471bea6a412581afa2bc39c4b2cb92f7 - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.990ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
a61f5deec65b1a30b54fc6ad686dda6767c11c22f88b3bf1af4c6db9cb0d67b3
Official status history
- UNKNOWN → PUBLISHED · · evidence