CVE-2026-115868: djangoproject Django XSS

CVE-2026-115868

NVD

Vulnerability Summary

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.
Severity Level
MEDIUM(5.1)
Published Date
Dec 2, 2026
Last Modified
Dec 2, 2026
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The software does not neutralize user-controllable input before it is placed in output that is used as a web page.
CVSS v4.0 Base Metrics — Score 5.1 (MEDIUM)
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
Attack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionActive
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)None
Confidentiality (Subsequent System)Low
Integrity (Subsequent System)Low
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 6.1)
CVSS v3.1 Base Metrics — Score 6.1 (MEDIUM)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged
ConfidentialityLow
IntegrityLow
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • djangoproject Django >= 6.1 and < 6.1.4
  • djangoproject Django >= 6.0 and < 6.0.11
  • djangoproject Django >= 5.2 and < 5.2.20
Patched Versions
  • djangoproject Django 6.1.4
  • djangoproject Django 6.0.11
  • djangoproject Django 5.2.20

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run djangoproject Django and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 2, 2026Published
  • Dec 2, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new djangoproject Django CVEsYou are reading CVE-2026-115868. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 2, 2026 14:13 UTC