{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-115868", "assignerOrgId": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92", "state": "PUBLISHED", "assignerShortName": "DSF", "dateReserved": "2026-10-23T18:08:43.499Z", "datePublished": "2026-12-02T13:20:10.885Z", "dateUpdated": "2026-12-02T17:00:40.559Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92", "shortName": "DSF", "dateUpdated": "2026-12-02T13:20:10.885Z" }, "problemTypes": [ { "descriptions": [ { "lang": "en", "cweId": "CWE-79", "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", "type": "CWE" } ] } ], "impacts": [ { "capecId": "CAPEC-63", "descriptions": [ { "lang": "en", "value": "CAPEC-63: Cross-Site Scripting (XSS)" } ] } ], "title": "Potential cross-site scripting vulnerability in truncatechars_html", "metrics": [ { "other": { "content": { "value": "moderate", "namespace": "https://docs.djangoproject.com/en/dev/internals/security/#security-issue-severity-levels" }, "type": "Django severity rating" } }, { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM" } }, { "cvssV4_0": { "version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N", "baseScore": 5.1, "baseSeverity": "MEDIUM" } } ], "descriptions": [ { "lang": "en", "value": "An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.\nThe `truncatechars_html` template filter and the `django.utils.text.Truncator.chars()` method (with `html=True`) are subject to a potential cross-site scripting (XSS) attack when certain inputs whose text length matches the truncation length are processed and rendered in an HTML attribute.\nEarlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.\nDjango would like to thank JoeCyberTech for reporting this issue.", "supportingMedia": [ { "type": "text/html", "base64": false, "value": "

An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20.

The truncatechars_html template filter and the django.utils.text.Truncator.chars() method (with html=True) are subject to a potential cross-site scripting (XSS) attack when certain inputs whose text length matches the truncation length are processed and rendered in an HTML attribute.

Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.

Django would like to thank JoeCyberTech for reporting this issue.

" } ] } ], "affected": [ { "collectionURL": "https://pypi.org/project/Django/", "defaultStatus": "unaffected", "packageName": "django", "product": "Django", "repo": "https://github.com/django/django/", "vendor": "djangoproject", "versions": [ { "status": "affected", "version": "6.1", "lessThan": "6.1.4", "versionType": "python" }, { "status": "unaffected", "version": "6.1.4", "versionType": "python" }, { "status": "affected", "version": "6.0", "lessThan": "6.0.11", "versionType": "python" }, { "status": "unaffected", "version": "6.0.11", "versionType": "python" }, { "status": "affected", "version": "5.2", "lessThan": "5.2.20", "versionType": "python" }, { "status": "unaffected", "version": "5.2.20", "versionType": "python" } ] } ], "references": [ { "url": "https://docs.djangoproject.com/en/dev/releases/security/", "name": "Django security archive", "tags": [ "vendor-advisory" ] }, { "url": "https://groups.google.com/g/django-announce", "name": "Django releases announcements", "tags": [ "mailing-list" ] }, { "tags": [ "patch" ], "url": "https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9" }, { "tags": [ "patch" ], "url": "https://github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df" }, { "tags": [ "patch" ], "url": "https://github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3" }, { "tags": [ "patch" ], "url": "https://github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67" }, { "url": "https://www.djangoproject.com/weblog/2026/dec/02/security-releases/", "name": "Django security releases issued: 6.1.4, 6.0.11, and 5.2.20", "tags": [ "vendor-advisory" ] } ], "credits": [ { "lang": "en", "type": "reporter", "value": "JoeCyberTech" }, { "lang": "en", "type": "remediation developer", "value": "Jake Howard" }, { "lang": "en", "type": "remediation reviewer", "value": "Sarah Boyce" }, { "lang": "en", "type": "remediation reviewer", "value": "Jacob Walls" }, { "lang": "en", "type": "coordinator", "value": "Jacob Walls" } ], "timeline": [ { "lang": "en", "time": "2026-10-15T12:00:00.000Z", "value": "Initial report received." }, { "lang": "en", "time": "2026-11-09T12:00:00.000Z", "value": "Vulnerability confirmed." }, { "lang": "en", "time": "2026-12-02T07:00:00.000Z", "value": "Security release issued." } ], "datePublic": "2026-12-02T07:00:00.000Z", "source": { "discovery": "EXTERNAL" }, "x_generator": { "engine": "cvelib 1.8.0" } }, "adp": [ { "metrics": [ { "other": { "type": "ssvc", "content": { "timestamp": "2026-12-02T16:59:53.450603Z", "id": "CVE-2026-115868", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "partial" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2026-12-02T17:00:40.559Z" } } ] } }