Sep 24, 2026·6 min read·12 visits
Unsafe inline rendering of uploaded XML files in the Snipe-IT REST API allows authenticated users with upload privileges to execute arbitrary client-side JavaScript in the context of other users' sessions, potentially leading to administrative account takeover.
CVE-2026-63498 is a high-severity Stored Cross-Site Scripting (XSS) vulnerability in Snipe-IT prior to version 8.7.0. The flaw resides in the REST API's file retrieval endpoint, which allows files to be rendered inline without sanitizing or restricting malicious content types like XML and XSLT stylesheets, leading to browser-side script execution in the context of the application's origin.
Snipe-IT is an open-source IT asset and license management platform built on the Laravel framework. The application implements standard upload functionalities for administrative tracking of invoices, licenses, and hardware assets. These file uploads are exposed via both a standard web interface and a comprehensive REST API engine.
The REST API exposes file retrieval capability through the app/Http/Controllers/Api/UploadedFilesController.php controller. This component serves as an intermediary proxy, pulling private objects from system storage and serving them back to authenticated clients. The vulnerability exists because the API endpoint does not validate file types before setting inline rendering instructions.
This design flaw maps directly to CWE-79 (Improper Neutralization of Input During Web Page Generation). By requesting stored files with the inline query parameter, attackers bypass the strict file-type and extension sanitization controls present in the standard web front-end. The security boundary between raw user-supplied data and browser execution is thus broken.
The root cause lies in the application's logical implementation of the file-retrieval routine in the show() method of the API controller. Unlike the traditional web interface, which employs strict extension allowlists before deciding to send an inline response, the API controller unconditionally set the Content-Disposition header to inline if the parameter inline=true was specified.
When an application serves XML content with Content-Disposition: inline, the web browser parses the file as active content rather than downloading it. This parsing behavior includes processing document prologue instructions, such as XML stylesheet associations. If an attacker links an XML document to an XSLT template, the browser will retrieve and execute the transformation sheets automatically.
This processing framework allows the inclusion of scripting blocks within the XSLT stylesheet. Because the file is served from the same domain as the Snipe-IT application, the browser executes the compiled scripts directly inside the application's origin context. Consequently, the script gains complete programmatic access to the Document Object Model (DOM), local storage, and session cookies.
Let us examine the vulnerable block in app/Http/Controllers/Api/UploadedFilesController.php before the patch. The controller immediately executed Storage::download and attached an unvalidated Content-Disposition header. There was no inspection of the physical file's extension or its MIME-type properties prior to triggering the inline response pipeline.
The logic in the vulnerable version of the controller was structured as follows:
if (request('inline') == 'true') {
$headers = [
'Content-Disposition' => 'inline',
];
return Storage::download(self::$map_storage_path[$object_type].$log->filename, $log->filename, $headers);
}The patched implementation introduces strict validation using a newly added helper utility, StorageHelper::allowSafeInline. This function verifies that the file extension is registered within an allowed subset in the system configuration file config/filesystems.php. It further ensures that the actual MIME type matches the file extension, protecting against extension-spoofing techniques:
if (request('inline') == 'true') {
$path = self::$map_storage_path[$object_type];
// Only allowlisted extensions may be served inline
if (! StorageHelper::allowSafeInline($path.$log->filename)) {
return StorageHelper::downloader($path.$log->filename);
}
return Storage::download($path.$log->filename, $log->filename, [
'Content-Disposition' => 'inline',
'X-Content-Type-Options' => 'nosniff',
]);
}Additionally, the patch updates the default downloader() helper to force secure response headers on files that are not permitted inline. By appending Content-Type: application/octet-stream and X-Content-Type-Options: nosniff, the application prevents the browser from sniffing the payload and executing embedded scripts, ensuring complete protection even if the user manually attempts to trigger execution.
Exploitation requires an authenticated session with basic privileges to upload file attachments to inventory objects, such as assets or models. The attacker first crafts a malicious XML payload referencing an external or locally hosted XSLT file. The XSLT schema contains embedded JavaScript elements designed to execute administrative actions silently.
The attack proceeds in a multi-step sequence. The attacker uploads both files to the system, receiving unique identifiers for each object. The XML payload is explicitly structured to point its stylesheet reference path to the API retrieval URL of the uploaded XSLT payload, leveraging the inline flag to force processing.
A visual representation of the exploitation process details the exact network and browser interaction paths:
When an authorized manager accesses the inline XML attachment, the browser processes the stylesheet translation. The stylesheet payload then runs arbitrary scripts to read CSRF tokens, access Laravel API endpoints, and initiate unauthorized actions on behalf of the administrator.
This vulnerability poses a high risk to administrative confidentiality and integrity. Because Snipe-IT utilizes authorization tokens and session identifiers within the local browser storage, executing code in the victim's origin context completely bypasses standard access control mechanisms.
The attacker can gain full control over the asset management database by executing API queries through the compromised browser context. Actions include creating new high-privilege administrators, deleting hardware tracking databases, or exfiltrating sensitive credential sheets.
The impact is elevated because the vulnerability requires very low privileges to exploit, needing only standard attachment upload permissions. The CVSS score of 8.7 reflects this high potential for lateral escalation and the ease of network-based delivery.
The primary remediation strategy is upgrading the Snipe-IT deployment to version 8.7.0 or higher. This update restricts inline rendering to verified safe file extensions and enforces MIME-type checking, ensuring that active content like XML and HTML cannot execute via the API.
In environments where patching must be deferred, temporary network and server-level mitigations should be applied. Administrators can use a web application firewall to block requests matching the pattern /api/v1/*/files/*?inline=true if the underlying file is an XML or HTML document.
Additionally, configuring the reverse proxy to send protective headers acts as a robust defense-in-depth measure. Forcing Content-Security-Policy: sandbox for the uploads path restricts all script execution, ensuring that browsers render attachments securely without risk to the primary application session.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Snipe-IT grokability | < 8.7.0 | 8.7.0 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 (Improper Neutralization of Input During Web Page Generation) |
| Attack Vector | Network (AV:N) |
| CVSS Score | 8.7 (High) |
| Exploit Status | Proof of Concept (PoC) represented in official test suites |
| CISA KEV Status | Not Listed |
| Impact | Complete session compromise and privilege escalation via Stored XSS |
The software does not neutralize or incorrectly neutralizes user-controlled input before it is placed in output that is used as a web page that is served to other users.
CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.
An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.
A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.
A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.
CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.
CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.