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-105293 Overview
CVE-2026-105293 is a path traversal vulnerability [CWE-22] in Legcord, an open-source Discord desktop client, affecting versions 1.1.0 through 1.3.0. The flaw resides in the theme Inter-Process Communication (IPC) handlers, which fail to validate theme identifier strings supplied by the renderer process. Script running within the Discord origin, such as code introduced through Cross-Site Scripting (XSS), can escape the designated themes directory. Attackers can abuse the themes.folder, themes.uninstall, and themes.install IPC channels to launch arbitrary local executables, recursively delete directories, and write files outside the themes directory.
Critical Impact
Attackers who achieve script execution in the Discord origin can trigger local code execution, arbitrary file write, and recursive directory deletion on the host system.
Affected Products
- Legcord 1.1.0
- Legcord 1.2.0
- Legcord 1.3.0
Discovery Timeline
- 2026-10-05 - CVE-2026-105293 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105293
Vulnerability Analysis
Legcord exposes several IPC handlers that accept a theme identifier from the renderer and perform file system operations relative to the themes directory. The handlers concatenate the attacker-controlled identifier into a file path without validating that the resolved path remains within the themes directory. A theme id containing .. sequences or an absolute path breaks out of the intended boundary.
Three distinct IPC channels inherit this weakness. The themes.folder handler opens a path with the operating system shell, which can launch local executables when pointed at a binary. The themes.uninstall handler recursively removes a directory tree, enabling destruction of arbitrary paths. The themes.install handler writes attacker-supplied content to the resolved path, enabling arbitrary file write outside the themes directory.
Root Cause
The root cause is missing path canonicalization and boundary enforcement in the theme IPC handlers defined in src/common/themes.ts and src/discord/ipc.ts. The handlers trust the theme id string provided by the Discord renderer process and do not confirm the final resolved path is a child of the themes directory before executing privileged file system or shell operations.
Attack Vector
Exploitation requires an attacker to execute script within the Discord origin loaded inside Legcord. This is achievable through an XSS primitive, a malicious plugin, or compromised Discord-origin content delivered to the client. Once script execution is established, the attacker invokes the vulnerable IPC methods with a crafted theme id containing traversal sequences. The payload resolves to a target outside the themes directory, triggering executable launch, file deletion, or file write with the privileges of the Legcord process. See the VulnCheck Advisory for Legcord and the vulnerable code in themes.ts for technical specifics.
Detection Methods for CVE-2026-105293
Indicators of Compromise
- Unexpected child processes spawned by the Legcord process, particularly executables located outside the Legcord installation directory.
- Writes or deletions by Legcord targeting paths outside the user's themes directory (%APPDATA%/Legcord/themes on Windows, ~/.config/Legcord/themes on Linux, ~/Library/Application Support/Legcord/themes on macOS).
- Theme id strings in Legcord logs containing .., forward or backward slashes, or absolute path prefixes.
Detection Strategies
- Alert on process creation events where the parent is Legcord and the child is a shell interpreter, scripting host, or binary outside the application directory.
- Monitor file system telemetry for Legcord-initiated file writes or recursive deletions outside the themes directory tree.
- Inventory endpoints running Legcord 1.1.0 through 1.3.0 using software asset data and prioritize them for patching.
Monitoring Recommendations
- Collect Electron process telemetry including command line arguments and parent-child process relationships.
- Forward endpoint file integrity events for user profile directories into a central Security Information and Event Management (SIEM) platform for correlation.
- Baseline normal Legcord file system activity so deviations such as writes to startup folders or system directories generate alerts.
How to Mitigate CVE-2026-105293
Immediate Actions Required
- Upgrade Legcord to a fixed version released after 1.3.0 once published by the maintainers. Track the status in Legcord GitHub Issue #1163.
- Restrict installation of untrusted Legcord plugins and themes, which could introduce the renderer-side script needed to reach the vulnerable IPC handlers.
- Audit endpoints for Legcord installations in the affected version range and remove the application where business justification is absent.
Patch Information
At the time of publication, consult the Legcord GitHub Repository and the referenced tracking issue for the fixed release. The remediation requires input validation on theme ids and path containment checks that confirm resolved paths remain within the themes directory before executing shell, delete, or write operations.
Workarounds
- Uninstall Legcord versions 1.1.0 through 1.3.0 if a patched release is not yet available for your platform.
- Run Legcord under a least-privilege user account to limit the blast radius of arbitrary file write and executable launch primitives.
- Block execution of Legcord via application control policies on endpoints that do not require the client.
# Example: identify Legcord installations on Linux endpoints
find / -type f -name "legcord" 2>/dev/null
legcord --version
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

