Cross-site scripting in Django - CVE-2026-115868

 

Cross-site scripting in Django - CVE-2026-115868

Published: December 2, 2026


Vulnerability identifier: #VU172349
CSH Severity: Medium
CVSS v4: 5.1 [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]
CVE-ID: CVE-2026-115868
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to potentially execute script in another user's browser in the context of the affected site.

The vulnerability exists due to improper neutralization of input in the truncatechars_html template filter and django.utils.text.Truncator.chars() with HTML mode enabled when the processed text is rendered in an HTML attribute. A remote attacker can supply content that the application processes and renders in that context to potentially cause script execution in another user's browser.

The affected case occurs when the input's text length matches the truncation length.


Affected software

Django

How to mitigate CVE-2026-115868

Install security update from vendor's website.

Django - addressed in versions 5.2.20, 6.0.11, 6.1.4

External References

Related Security Bulletins