CVE-2026-115868 PUBLISHED

Potential cross-site scripting vulnerability in truncatechars_html

Assigner: DSF
Reserved: 23.10.2026 Published: 02.12.2026 Updated: 02.12.2026

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.

Metrics

CVSS Vector: 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 Score: 5.1

Product Status

Vendor djangoproject
Product Django
Versions Default: unaffected
  • affected from 6.1 to 6.1.4 (excl.)
  • Version 6.1.4 is unaffected
  • affected from 6.0 to 6.0.11 (excl.)
  • Version 6.0.11 is unaffected
  • affected from 5.2 to 5.2.20 (excl.)
  • Version 5.2.20 is unaffected

Credits

  • JoeCyberTech reporter
  • Jake Howard remediation developer
  • Sarah Boyce remediation reviewer
  • Jacob Walls remediation reviewer
  • Jacob Walls coordinator

References

Problem Types

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE

Impacts

  • CAPEC-63: Cross-Site Scripting (XSS)