Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112289 Overview
CVE-2026-112289 is a stored cross-site scripting (XSS) vulnerability in Koalixcrm through version 1.14.0. The flaw resides in the Task.link_to_task() method within koalixcrm/crm/reporting/task.py, which renders task titles without proper HTML escaping. Authenticated staff users can store malicious script payloads in task titles. When an administrator later opens the Django admin task changelist or change form, the payload executes in the administrator's browser session. Successful exploitation can lead to privileged actions such as creating a Django superuser account, resulting in full compromise of the CRM application. The weakness is classified under CWE-79.
Critical Impact
An authenticated low-privileged staff user can escalate to administrator by injecting JavaScript into task titles that executes within the Django admin interface.
Affected Products
- Koalixcrm versions up to and including 1.14.0
- Django admin interface rendering Task objects
- Deployments using the vulnerable koalixcrm/crm/reporting/task.py module
Discovery Timeline
- 2026-10-19 - CVE-2026-112289 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-112289
Vulnerability Analysis
The vulnerability exists in the Task.link_to_task() helper used by the Django admin to render clickable links for Task objects. The method constructs an HTML anchor using the task title but does not escape or sanitize that title before marking the output as safe. Django treats the returned string as pre-sanitized HTML and renders it verbatim in both the task changelist view and the change form.
An attacker with staff-level access to the Koalixcrm admin can create or edit a task and supply a title containing HTML or JavaScript. The payload persists in the database and executes whenever a higher-privileged user, such as a superuser, visits the affected admin page. Because the script runs within the authenticated admin session, it inherits all CSRF tokens and session cookies required to perform privileged operations, including provisioning a new superuser account.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The link_to_task() method concatenates the user-controlled task title into an HTML fragment and returns it as a safe string, bypassing Django's automatic template escaping. Any staff user with permission to write task titles controls the final HTML rendered to administrators.
Attack Vector
Exploitation requires an authenticated staff account and user interaction from an administrator who opens the task admin view. The attacker stores a payload such as a script tag or event handler in the Task title field. When an administrator loads the changelist or change form, the browser parses the unescaped markup and executes the attacker's JavaScript. The script can then issue same-origin requests to Django admin endpoints to create a new superuser or alter application data. Technical details are documented in the VulnCheck Stored XSS Advisory, GitHub Issue #444, and the vulnerable task.py source.
No verified proof-of-concept code is published; see the referenced advisories for the technical analysis.
Detection Methods for CVE-2026-112289
Indicators of Compromise
- Task records whose title field contains HTML tags, <script> elements, javascript: URIs, or inline event handlers such as onerror= or onload=.
- Unexpected creation of Django superuser accounts in the auth_user table shortly after an administrator viewed the task admin.
- Admin audit log entries showing privilege or permission changes initiated from admin session IPs without corresponding manual activity.
Detection Strategies
- Query the Task table for titles matching regular expressions targeting angle brackets, script, on\w+=, or javascript: substrings.
- Review Django admin access logs for staff users creating or editing tasks immediately before superuser creation events.
- Enable Content Security Policy (CSP) reporting on the Django admin to surface inline script execution attempts.
Monitoring Recommendations
- Alert on new is_superuser=True user records and any changes to auth_permission or auth_group tables.
- Monitor Django request logs for POST requests to /admin/auth/user/add/ originating from admin sessions that were loading /admin/.../task/ moments earlier.
- Track staff user activity on the Task model and flag titles exceeding expected length or containing non-printable or markup characters.
How to Mitigate CVE-2026-112289
Immediate Actions Required
- Restrict staff-level access to the Koalixcrm Task model to trusted users only until a patched release is available.
- Audit all existing Task titles for stored HTML or script payloads and sanitize or delete malicious entries.
- Review the auth_user table for unauthorized superuser accounts and revoke them.
Patch Information
At the time of publication, no fixed version of Koalixcrm is listed in the NVD entry for CVE-2026-112289. Monitor the upstream GitHub Issue #444 and the project repository for a release addressing the stored XSS in Task.link_to_task(). The expected fix is to HTML-escape the task title before returning it from link_to_task(), for example by using Django's format_html() helper instead of returning a pre-marked safe string.
Workarounds
- Override Task.link_to_task() in a local fork or admin subclass to escape the title using django.utils.html.format_html or escape() before building the anchor.
- Deploy a strict Content Security Policy on /admin/ that disallows inline scripts, mitigating execution of injected payloads.
- Reduce the number of staff accounts with permission to add or change Task objects and require multi-factor authentication for all Django admin logins.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

