Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `django.utils.text.Truncator.chars()` and `Truncator.words()` methods (with `html=True`) and the `truncatechars_html` and `truncatewords_html` template filters allow a remote attacker to cause a potential denial-of-service via crafted inputs containing a large number of unmatched HTML end tags. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-1285
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 07:45 UTC · Revision 1
Source evidence
Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods
core-osv · Original sourcePublished 3 Feb 2026, 14:35 UTC
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `django.utils.text.Truncator.chars()` and `Truncator.words()` methods (with `html=True`) and the `truncatechars_html` and `truncatewords_html` template filters allow a remote attacker to cause a potential denial-of-service via crafted inputs containing a large number of unmatched HTML end tags. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
osv:CVE-2026-1285
Complete source record
{
"id": "e7f33981c0d5d725bdd0ec860bb3eb34508a8ff7b6d75a45bc9dad15392d0e27",
"url": "https://osv.dev/vulnerability/CVE-2026-1285",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methods",
"summary": "An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. `django.utils.text.Truncator.chars()` and `Truncator.words()` methods (with `html=True`) and the `truncatechars_html` and `truncatewords_html` template filters allow a remote attacker to cause a potential denial-of-service via crafted inputs containing a large number of unmatched HTML end tags. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.",
"evidence": "osv:CVE-2026-1285",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-1285",
"aliases": [
"BIT-django-2026-1285",
"CVE-2026-1285",
"GHSA-4rrr-2h4v-f3j9",
"PYSEC-2026-45"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/django/django",
"type": "GIT",
"events": [
{
"introduced": "97aa3b7f08f51669e118f3af5ca91026e39664c3"
},
{
"fixed": "20c71f6b91324cf401056c72136c14e0ec2bf7bf"
},
{
"introduced": "9e7cc2b628fe8fd3895986af9b7fc9525034c1b0"
},
{
"fixed": "4a96a199bbb1d3dca45ea16bf643216e179cb8bc"
},
{
"introduced": "36b5f39d9372147f0e758f590e35ee2b2bc317dd"
},
{
"fixed": "ba00558ddac694d92b05d12ecd2a5b7fcc1de025"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "4.2"
},
{
"fixed": "4.2.28"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "5.2"
},
{
"fixed": "5.2.11"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "6.0"
},
{
"fixed": "6.0.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"6.0.1",
"5.2.10",
"6.0",
"5.2.9",
"5.2.8",
"5.2.7",
"5.2.6",
"5.2.5",
"5.2.4",
"5.2.3",
"5.2.2",
"5.2.1",
"5.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-1285.json"
}
}
],
"modified": "2026-10-28T02:30:26.680851165Z",
"provider": "osv",
"references": [
"https://github.com/django/django/",
"https://docs.djangoproject.com/en/dev/releases/security/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1285.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-1285",
"https://www.djangoproject.com/weblog/2026/feb/03/security-releases/",
"https://pypi.org/project/Django/",
"https://groups.google.com/g/django-announce"
],
"provider_metadata": {
"cwe_ids": [
"CWE-407"
],
"cna_assigner": "DSF",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1285.json"
}
},
"related_cves": [
{
"value": "CVE-2026-1285",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493472,
"published_at": "2026-02-03T14:35:50.254+00:00"
}