{"schemaVersion":4,"id":"CVE-2026-115868","aliases":["DEBIAN-CVE-2026-115868","UBUNTU-CVE-2026-115868"],"status":"published","duplicateOf":null,"title":"Potential cross-site scripting vulnerability in truncatechars_html","description":"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.\nThe `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.\nEarlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.\nDjango would like to thank JoeCyberTech for reporting this issue.","dates":{"published":"2026-12-02T13:20:10.885Z","modified":"2026-12-02T17:00:40.559Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.1,"severity":"medium","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.1,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":5.1,"severity":"medium","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true}]},"epss":{"probability":0.00544,"percentile":0.47151,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-03T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00544,"percentile":0.47151}],"last30":[{"date":"2026-12-03T00:00:00.000Z","score":0.00544,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00544,"percentile":0.47151}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"debian","product":"python-django","name":"python-django","label":"python-django","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-django","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-django","name":"python-django","label":"python-django","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-django","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"djangoproject","product":"django","name":"Django","label":"django","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.1, < 6.1.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"6.1","startInclusive":true,"end":"6.1.4","endInclusive":false}},{"text":"≥ 6.0, < 6.0.11","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"6.0","startInclusive":true,"end":"6.0.11","endInclusive":false}},{"text":"≥ 5.2, < 5.2.20","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.2","startInclusive":true,"end":"5.2.20","endInclusive":false}}],"versionsText":"≥ 6.1, < 6.1.4 | ≥ 6.0, < 6.0.11 | ≥ 5.2, < 5.2.20","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"django","label":"Django","category":"framework"}},"hubHref":"/vendor/djangoproject/django"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","label":"docs.djangoproject.com/en/dev/releases/security/","hostname":"docs.djangoproject.com","tags":["Vendor Advisory"]},{"url":"https://groups.google.com/g/django-announce","label":"groups.google.com/g/django-announce","hostname":"groups.google.com","tags":["Mailing List"]},{"url":"https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9","label":"github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df","label":"github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3","label":"github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67","label":"github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://www.djangoproject.com/weblog/2026/dec/02/security-releases/","label":"www.djangoproject.com/weblog/2026/dec/02/security-releases/","hostname":"www.djangoproject.com","tags":["Vendor Advisory","REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-115868","label":"security-tracker.debian.org/tracker/CVE-2026-115868","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-115868","label":"ubuntu.com/security/CVE-2026-115868","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-115868","label":"www.cve.org/CVERecord?id=CVE-2026-115868","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0650"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-02T13:20:10.885Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-02T17:00:40.559Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,51],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00544,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-02T17:00:40.559Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.1,"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","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-12-02T17:00:40.559Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-12-02T17:00:40.559Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-12-02T17:00:40.559Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-12-02T17:00:40.559Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"adp","source":"cisa-adp","date":"2026-12-02T16:59:53.450Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00544,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:42:35.591Z","stale":false,"partial":false}}