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.
CVE-2026-115868
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 truncatecharshtml 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.
Assessment
- CVSS
- 5.1 (v4.0)
- Severity
- Medium
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 2 December 2026
- Last updated
- 2 December 2026
- Affected
- djangoproject · Django
- Weakness
- CWE-79
- Assigner
- DSF
CVSS vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
At the source
References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/g/django-announce
- 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
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-115868