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-110101 Overview
CVE-2026-110101 is a stored cross-site scripting (XSS) vulnerability in Koillection through version 1.8.4. The flaw exists in the Datum file attachment upload workflow, which lacks MIME type restrictions on the POST /api/data/{id}/file endpoint. Authenticated users can upload arbitrary HTML files that the application subsequently serves as text/html from the public/uploads directory. When a victim visits the attachment URL, the browser executes attacker-controlled JavaScript in the victim's authenticated session, allowing the attacker to perform actions on the victim's behalf. The weakness is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated attackers can store HTML/JavaScript payloads that execute in other users' browser sessions, enabling account actions, data exfiltration, and session abuse within the Koillection application context.
Affected Products
- Koillection through version 1.8.4
- Self-hosted Koillection instances exposing the Datum file upload API
- Deployments serving user content directly from public/uploads
Discovery Timeline
- 2026-10-13 - CVE-2026-110101 published to the National Vulnerability Database
- 2026-10-13 - Last updated in the NVD database
Technical Details for CVE-2026-110101
Vulnerability Analysis
Koillection is an open-source self-hosted collection management application. The vulnerability resides in how the application handles file attachments associated with Datum entities. The Datum entity accepts file uploads through the REST endpoint POST /api/data/{id}/file, but the server-side logic does not restrict uploads to safe MIME types or image formats. An authenticated user can submit a file containing arbitrary HTML and JavaScript. The uploaded file is written to public/uploads and later retrieved with a Content-Type: text/html response header. When another authenticated user accesses that URL, their browser renders and executes the payload under the application's origin.
Because the payload runs in the context of the victim's session, it can issue authenticated API calls, read DOM content, and manipulate collections owned by the victim. Technical details are documented in the VulnCheck advisory and the upstream GitHub Issue #1609.
Root Cause
The root cause is missing MIME type and extension validation in the Datum file attachment upload path. The Datum entity definition and the ImageHandler service accept arbitrary content without enforcing an allowlist of safe image types. Compounding the issue, the web server returns stored files with their inferred text/html content type instead of forcing a safe type or Content-Disposition: attachment.
Attack Vector
Exploitation requires an authenticated account with permission to create Datum file attachments. The attacker crafts an HTML file containing a JavaScript payload and uploads it through POST /api/data/{id}/file. The attacker then distributes the resulting attachment URL to a victim within the same Koillection instance. When the victim opens the link, the script executes in the browser under the Koillection origin, inheriting session cookies and performing actions available to the victim's role.
No verified public exploit code is available. See the GitHub release notes for v1.8.4 and the referenced advisories for additional technical context.
Detection Methods for CVE-2026-110101
Indicators of Compromise
- Files with .html, .htm, .svg, or .xhtml extensions present under public/uploads on Koillection hosts
- HTTP responses from /uploads/ paths returning Content-Type: text/html instead of an image MIME type
- Unexpected POST requests to /api/data/{id}/file from low-privilege accounts carrying non-image payloads
Detection Strategies
- Inspect stored upload directories for files whose magic bytes or extensions indicate HTML or script content rather than image data
- Review web server access logs for successful uploads to the Datum file endpoint followed by access from different user sessions
- Alert on outbound requests from browsers to attacker-controlled domains originating from pages served under the Koillection origin
Monitoring Recommendations
- Enable application-level audit logging for file uploads, capturing uploader identity, filename, MIME type, and target Datum
- Monitor HTTP response headers from the uploads directory to confirm image content types are enforced
- Track account behavior for authenticated users uploading unusually large numbers of attachments or non-standard file formats
How to Mitigate CVE-2026-110101
Immediate Actions Required
- Upgrade Koillection to a version later than 1.8.4 that enforces MIME type restrictions on Datum file uploads
- Audit the public/uploads directory and remove any files that are not valid image types
- Rotate session secrets and require re-authentication for all users if HTML files are discovered in the upload directory
Patch Information
Monitor the Koillection GitHub releases page and Issue #1609 for the fixed release. The upstream fix is expected to add MIME and extension allowlisting in the Datum upload handler and enforce safe Content-Type responses from the uploads path.
Workarounds
- Configure the reverse proxy or web server to force Content-Type: application/octet-stream and Content-Disposition: attachment for all responses from /uploads/
- Restrict Datum file attachment creation to trusted accounts until a patched version is deployed
- Deploy a Content Security Policy (CSP) that disables inline script execution for pages served from the Koillection origin
# Nginx example: force safe content type and attachment disposition for uploads
location /uploads/ {
add_header X-Content-Type-Options "nosniff" always;
add_header Content-Disposition "attachment" always;
types { } default_type application/octet-stream;
}
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

