Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain script execution in Discord origin (XSS)
-
DeliveryInvoke theme IPC handler with traversal id
-
ExploitEscape themes directory via unvalidated path
-
ExecutionLaunch local executable / write / delete files
-
ImpactCode execution and data loss on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to already be executing script within the Discord origin inside Legcord (for example via XSS in the Discord web content), which the CVSS AT:P requirement and AC:H reflect - this is not exploitable against a passive, non-interacting client with no script foothold. Given that foothold, the attacker abuses the themes.folder, themes.uninstall, and themes.install IPC handlers (ipc.ts / themes.ts) by supplying theme ids that are not validated against the themes directory, enabling traversal outside it. The vulnerability affects Legcord versions 1.1.0 through 1.3.0; the primary limiting factor is the need for a separate renderer script-execution capability, after which no further authentication is required (PR:N). |
| Impact | CVSS 4.0 rates this 9.2 (Critical) with full confidentiality, integrity, and availability impact (VC:H/VI:H/VA:H), consistent with the ability to launch local executables, recursively delete directories, and write arbitrary files outside the themes directory - effectively code execution on the host. However, the vector itself tempers raw severity: AC:H and AT:P indicate the attack is not trivially repeatable and depends on a specific precondition, and the description makes that precondition explicit - the attacker must already be running script in the Discord origin (e.g., via XSS). This is therefore a chained/secondary vulnerability rather than a standalone remote-unauthenticated RCE, which meaningfully narrows real-world exploitability. No EPSS score was supplied, the CVE is not listed in CISA KEV, and no public proof-of-concept is referenced, so there is no public exploit identified at time of analysis and no evidence of active exploitation. SSVC-style read: technical impact is total, but automatability is low given the required XSS foothold and the local-execution context of a desktop app. Net: a genuinely serious design flaw worth prompt patching for Legcord users, but its practical priority is gated by the prevalence of the product (a niche third-party Discord client) and by the need for a separate script-execution primitive in the Discord renderer. |
| Exploit ScenarioDerived | An attacker who can execute JavaScript in Legcord's Discord renderer - for example through a cross-site scripting flaw in the Discord web content or a malicious embedded resource - calls the themes.folder, themes.install, or themes.uninstall IPC handlers with a theme id containing path-traversal sequences. Because the id is not validated against the themes directory, the handler operates on attacker-chosen paths, letting the attacker launch a local executable, delete directories recursively, or write files anywhere the Legcord process can reach, escalating a renderer-level script foothold into host code execution. No public proof-of-concept is referenced, and the high attack complexity reflects the need for that initial script-execution primitive. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
Path traversal in Legcord's theme IPC handlers (versions 1.1.0 through 1.3.0) allows an attacker who already has script execution inside the embedded Discord page - for example via XSS - to supply unvalidated theme ids to themes.folder, themes.uninstall, and themes.install and escape the themes directory. That yields arbitrary file writes, recursive directory deletion, and local executable launch, i.e. host code execution; CVSS 4.0 scores it 9.2 (Critical) with full confidentiality, integrity, and availability impact, and PR:N means no further authentication is required once the script foothold exists, while AC:H and AT:P capture that prerequisite. No public exploit code was identified at time of analysis and no CISA KEV listing is present.
RemediationAI
No fixed release version is identified in the available reference data, so track GitHub issue #1163 and the upstream repository at https://github.com/Legcord/Legcord for a patched build and apply it as soon as it is published, using the VulnCheck advisory at https://www.vulncheck.com/advisories/legcord-1.1.0-through-1.3.0-path-traversal-via-theme-ipc-handlers as corroboration. Until then, the most direct compensating control is to remove or disable the theme IPC surface (themes.folder, themes.uninstall, and themes.install) in the client build, with the trade-off that theme management stops working. Fixing the CWE-22 root cause requires validating each theme id against the resolved themes directory and rejecting absolute paths or .. segments before any filesystem call, or canonicalizing the path and confirming it remains contained within the themes directory, though either change needs a rebuild or patch of the application. Because the flaw is reachable only after script execution in the Discord origin, reducing that foothold also matters: keep Electron and the Discord web layer updated, avoid untrusted plugins or injected content, and run the client under a non-admin OS account with write access restricted outside the themes directory so a successful traversal cannot launch executables or delete arbitrary directories. These measures limit impact but do not remove the underlying missing-validation defect.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Legcord is an Electron-based third-party Discord client that renders Discord web content and bridges it to native operations over IPC. CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) is the root cause: the IPC handlers in src/discord/ipc.ts (around lines 201-206) and the theme path helpers in src/common/themes.ts (around lines 269-276) at tag v1.3.0 join caller-supplied theme ids onto the themes directory without canonicalization or a containment check, so sequences such as ../ or absolute paths resolve outside it. Because those handlers back theme folder opening, uninstall, and install, the traversal converts a renderer-side script-execution primitive into native file operations, including launching executables and recursive deletion. The CPE cpe:2.3:a:legcord:legcord:*:*:*:*:*:*:*:* covers the affected 1.1.0 through 1.3.0 range; the upstream repository and issue #1163 are the primary tracking references.
Know when Legcord gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
AC:H because exploitation depends on a prior XSS/script-execution foothold in the Discord renderer; PR:N and UI:N as no local privileges or user interaction are needed once that foothold exists; C/I/A:H reflect executable launch, arbitrary writes, and recursive deletion.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Legcord 1.1.0 through 1.3.0 contains a path traversal vulnerability in theme IPC handlers that allows script in the Discord page to escape the themes directory via unvalidated theme ids. Attackers running script in the Discord origin, such as through XSS, can abuse themes.folder, themes.uninstall, and themes.install to launch local executables, recursively delete directories, and write files outside the themes directory.
Executive ViewAI
A critical path-traversal flaw in the Legcord desktop client (versions 1.1.0 through 1.3.0) lets an attacker who already has a script foothold inside the embedded Discord page escalate to writing arbitrary files, recursively deleting directories, and launching executables on the user's machine. Because Legcord is an end-user application that may hold Discord session tokens and access to local files and corporate resources, successful exploitation effectively hands an attacker code execution on the employee workstation. With no vendor patch identified at time of analysis, every user running an affected build remains exposed for the foreseeable near term, and leadership should treat this as an endpoint-integrity and credential-theft risk rather than a routine application bug.
No vendor-released patch identified at time of analysis. Interim mitigations: remove or block Legcord 1.1.0-1.3.0 on managed endpoints pending a fix; run the client only as a non-privileged user with least-privilege filesystem access and no access to sensitive shares or credential stores; restrict or remove third-party theme installation and lock down the themes directory; use OS application control / sandboxing to constrain Legcord's ability to write outside expected paths or spawn child processes; and harden the embedded Discord page against the XSS precondition through content security policy enforcement, extension allow-listing, and user guidance against untrusted content.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-92157
GHSA-m6xw-v6hf-7jc2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB