CVE-2026-115868
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9
- https://github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67
- https://github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df
- https://github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3
- https://groups.google.com/g/django-announce
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.