Skip to main content
Vulnerability Database/CVE-2026-114398

CVE-2026-114398: Trudesk File Upload XSS Vulnerability

CVE-2026-114398 is a stored XSS vulnerability in Trudesk through 1.2.11 caused by unrestricted file upload. Attackers can upload malicious HTML or SVG files to execute scripts. This article covers technical details, affected versions, impact, and mitigation strategies.

Published:

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-114398 Overview

CVE-2026-114398 is an unrestricted file upload vulnerability in Trudesk through version 1.2.11. The flaw affects the uploadlogo, uploadpagelogo, and uploadfavicon endpoints exposed under the general settings interface. Any authenticated user can place HTML or SVG files into the public webroot by spoofing an image MIME type during upload. Files land in the /assets/ directory, which is served without authentication. Attackers leverage this to achieve stored cross-site scripting (XSS) and to replace instance branding assets. The weakness maps to CWE-434: Unrestricted Upload of File with Dangerous Type.

Critical Impact

Authenticated attackers can upload script-bearing files served from /assets/ to achieve stored XSS against all users of the Trudesk instance and tamper with brand identity.

Affected Products

  • Trudesk through version 1.2.11
  • uploadlogo, uploadpagelogo, and uploadfavicon endpoints in src/controllers/main.js
  • Public asset routes defined in src/routes/index.js

Discovery Timeline

  • 2026-10-21 - CVE-2026-114398 published to the National Vulnerability Database
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114398

Vulnerability Analysis

Trudesk is an open-source ticketing and help desk platform. The general settings interface exposes three branding upload endpoints that accept image files for the instance logo, page logo, and favicon. These handlers validate the uploaded file based on the client-supplied MIME type rather than inspecting the file contents or restricting extensions. An authenticated attacker can submit an HTML or SVG payload while declaring an image/* content type. The server writes the file to the public webroot under /assets/, where it is retrievable without authentication. Any user who later loads the hosted file executes the embedded script in the context of the Trudesk origin. See the VulnCheck Trudesk File Upload Advisory and the HackMD Multiple Vulnerabilities Analysis for additional context.

Root Cause

The upload handlers in src/controllers/main.js trust the request-supplied MIME type without performing magic-byte inspection or enforcing a strict extension allowlist. The route definitions in src/routes/index.js place uploaded files under the /assets/ static directory, which is served to anonymous clients.

Attack Vector

An attacker needs any authenticated Trudesk account that can reach the general settings page. The attacker submits a crafted multipart upload to uploadlogo, uploadpagelogo, or uploadfavicon with a .svg or .html payload containing JavaScript, while declaring an image MIME type such as image/svg+xml or image/png. The server stores the file under /assets/ with a predictable name. The attacker then shares the asset URL or waits for the branded element to render, executing arbitrary script in each victim session.

No verified exploit code is published in the referenced advisories. See the VulnCheck advisory for reproduction details.

Detection Methods for CVE-2026-114398

Indicators of Compromise

  • Files with .svg, .html, .htm, or .xhtml extensions present in the Trudesk /assets/ directory.
  • Logo or favicon assets whose stored MIME type does not match the actual file magic bytes.
  • Unexpected modifications to branding assets logged in Trudesk audit records without a corresponding administrator action.

Detection Strategies

  • Inspect webserver logs for POST requests to /uploadlogo, /uploadpagelogo, and /uploadfavicon initiated by non-administrator accounts.
  • Scan the Trudesk assets directory for files containing <script, <svg, or onload= tokens.
  • Correlate anonymous GET requests under /assets/ for non-image file types with the originating upload request.

Monitoring Recommendations

  • Alert on any upload where the declared Content-Type begins with image/ but the stored file extension is executable or markup.
  • Monitor Content Security Policy (CSP) violation reports from Trudesk clients for inline script execution originating from /assets/.
  • Track creation of new files in the webroot and send events to a centralized logging platform for review.

How to Mitigate CVE-2026-114398

Immediate Actions Required

  • Restrict access to the Trudesk general settings interface to trusted administrators only.
  • Audit the /assets/ directory and remove any .svg, .html, or other non-image files not placed by an administrator.
  • Rotate session tokens and credentials for users who may have loaded a tampered logo or favicon.

Patch Information

No fixed version is referenced in the published advisory data for CVE-2026-114398 at the time of writing. Monitor the Trudesk GitHub repository for a release that addresses the unrestricted upload in uploadlogo, uploadpagelogo, and uploadfavicon.

Workarounds

  • Place Trudesk behind a reverse proxy that blocks POST requests to the three upload endpoints from non-administrator sessions.
  • Configure the webserver to deny delivery of .svg, .html, .htm, and .xhtml files from the /assets/ path.
  • Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to vetted origins.
  • Validate uploaded files server-side by inspecting magic bytes and re-encoding images through a trusted library before writing to disk.
bash
# Example nginx workaround: block script-capable files under /assets/
location ~* ^/assets/.*\.(svg|html?|xhtml)$ {
    return 403;
}

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.