Description
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.
CVSS scores
| Version | Scored by | Score | Vector |
|---|---|---|---|
| CVSS 3.1 | DSF (CNA) | 6.1 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CVSS 4.0 | DSF (CNA) | 5.1 Medium | 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 |
| CVSS 4.0 | CNA | 5.1 Medium | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Timeline
- CVE published
- Last updated by the CVE authority
- First tracked by SecureCyberVM
Am I affected?
- Do you run djangoproject Django? Check the exact versions in the affected products list.
- Is the affected service reachable from the internet or by untrusted users? Exposed systems come first.
- Watch this page: if exploitation is reported it moves to the top of your list.
- Apply the vendor's update as soon as it is available; restrict access to the service until then.
Affected products
- djangoproject Django: from 6.1 before 6.1.4; from 6.0 before 6.0.11; from 5.2 before 5.2.20 · All djangoproject vulnerabilities
Fix
- Django security archive (vendor-advisory)
- github.com (patch)
- github.com (patch)
- github.com (patch)
- github.com (patch)
- Django security releases issued: 6.1.4, 6.0.11, and 5.2.20 (vendor-advisory)
Weakness
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Coverage of CVE-2026-115868
Other djangoproject vulnerabilities
- CVE-2026-132092 Potential SQL injection in range and in lookups
- CVE-2026-124827 Server-side file-write via RasterField assignment
- CVE-2026-125673 Potential cache poisoning via dot segments in request paths
All djangoproject vulnerabilities →
Frequently asked questions
Is CVE-2026-115868 being actively exploited?
There are no confirmed reports of exploitation in the wild: CVE-2026-115868 is not in CISA's Known Exploited Vulnerabilities catalog. This page is re-checked daily.
How severe is CVE-2026-115868?
CVE-2026-115868 has a highest CVSS score of 6.1 (Medium) under CVSS 3.1. Severity alone is not priority: check exploitation status and whether you run an affected version.
How do I fix CVE-2026-115868?
Apply the vendor's security update as soon as it is available and follow the official advisory linked in the references on this page. Restrict exposure of the affected service until it is patched.
Which products are affected by CVE-2026-115868?
djangoproject Django. See the affected products list on this page for exact versions.
References
- Django security archive
- Django releases announcements
- https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9
- https://github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df
- https://github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3
- https://github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67
- Django security releases issued: 6.1.4, 6.0.11, and 5.2.20
Change log
- First recorded on SecureCyberVM from CVE.org, NVD, CISA KEV and FIRST EPSS.
Sources: CVE.org, NIST NVD, CISA KEV and ADP, FIRST EPSS. This record is refreshed automatically every day; changes are listed in the change log above.
