CVE-2026-115868
Published:December 02, 2026
Updated:December 02, 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.
Affected Packages
django (CONDA):
Affected version(s) >=5.1 <5.2.20Fix Suggestion:
Update to version 5.2.20django (CONDA):
Affected version(s) >=6.0 <6.0.11Fix Suggestion:
Update to version 6.0.11django (CONDA):
Affected version(s) >=6.1 <6.1.4Fix Suggestion:
Update to version 6.1.4https://github.com/django/django.git (GITHUB):
Affected version(s) >=6.0a1 <6.0.11Fix Suggestion:
Update to version 6.0.11https://github.com/django/django.git (GITHUB):
Affected version(s) >=6.1a1 <6.1.4Fix Suggestion:
Update to version 6.1.4https://github.com/django/django.git (GITHUB):
Affected version(s) >=5.1a1 <5.2.20Fix Suggestion:
Update to version 5.2.20django (PYTHON):
Affected version(s) >=6.0a1 <6.0.11Fix Suggestion:
Update to version 6.0.11django (PYTHON):
Affected version(s) >=6.1a1 <6.1.4Fix Suggestion:
Update to version 6.1.4django (PYTHON):
Affected version(s) >=5.1a1 <5.2.20Fix Suggestion:
Update to version 5.2.20Related ResourcesĀ (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.1
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
ACTIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation