Potential cross-site scripting vulnerability in truncatechars_html
- Exploited
- No known exploitation
- Fix
- Fixed in 6.1.4, 6.0.11, 5.2.20
- Who is exposed
- Not reported
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.
What to do
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-115868 (Potential cross-site scripting vulnerability in truncatechars_html), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-115868 (entry last updated 2026-12-02):
Affected:
- PyPI package django: from 6.1, fixed in 6.1.4; from 6.0, fixed in 6.0.11; from 5.2, fixed in 5.2.20
Fixed versions: 6.1.4, 6.0.11, 5.2.20.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-115868 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-115868 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
- https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9
- https://github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df
- https://github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3
- https://github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67
- https://groups.google.com/g/django-announce
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-115868
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-115868"}.Affected versions
cve.now Index
- Exploitation0/40No signal
- Exposure7/25Reachable over the network without a login · Unknown: No advisory context yet
- Reach20/20django: 12M downloads a week
- Severity6.1/10CVSS 6.1
- No patch0/5No signal
What would change the score
- Would score about 88 if added to CISA KEV
- Would score about 83 if CISA's SSVC rates exploitation active
- Would score about 48 if advisories confirm default setups are exposed
Impact
- Widely useddjango has 12m weekly downloads. pypistats.org12.2k packages depend on django. deps.dev
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Evidence 9
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | docs.djangoproject.com · en/dev/releases/security |
| Advisory | djangoproject.com · weblog/2026/dec/02/security-releases |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-115868 |
| Record | NVD · CVE-2026-115868 |
| Other links 5 | |
| Patch | GitHub · django/django · Commit 454f44fc |
| Patch | GitHub · django/django · Commit 7cf220a2 |
| Patch | GitHub · django/django · Commit aaf82df0 |
| Patch | GitHub · django/django · Commit 781dd5f5 |
| Link | groups.google.com · g/django-announce |
Questions about CVE-2026-115868
Is CVE-2026-115868 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-115868?
django (PyPI): from 6.1 before 6.1.4; from 6.0 before 6.0.11; from 5.2 before 5.2.20.
Source: cve.now feed data
How do I fix CVE-2026-115868?
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Source: cve.now feed data
Related
- CVE-2026-132092Potential SQL injection in range and in lookups
- CVE-2026-124827Server-side file-write via RasterField assignment
- CVE-2026-15307Server-side file-write and request forgery via spatial lookups
- CVE-2026-53878Header injection possibility since DomainNameValidator accepted newlines in input
- CVE-2026-132809Heap buffer overflow in OGRGeometry.wkb
- CVE-2026-114582Server-side request forgery via SpatialReference string input
No corrections so far. Something wrong on this page? Report an error.