CVE-2025-62378 in Canonical products
CommandKit is the discord.js meta-framework for building Discord bots. In versions 1.2.0-rc.1 through 1.2.0-rc.11, a logic flaw exists in the message command handler that affects how the commandName property is exposed to both middleware functions and command execution contexts when handling command aliases. When a ...
Affects 0 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full integrity impact, no availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
CommandKit is the discord.js meta-framework for building Discord bots. In versions 1.2.0-rc.1 through 1.2.0-rc.11, a logic flaw exists in the message command handler that affects how the commandName property is exposed to both middleware functions and command execution contexts when handling command aliases. When a message command is invoked using an alias, the ctx.commandName value reflects the alias rather than the canonical command name. This occurs in both middleware functions and within the command's own run function. Although not explicitly documented, CommandKit's examples and guidance around middleware usage implicitly convey that ctx.commandName represents the canonical command identifier. Middleware examples in the documentation consistently use ctx.commandName to reference the command being executed. Developers who assume ctx.commandName is canonical may introduce unintended behavior when relying on it for logic such as permission checks, rate limiting, or audit logging. This could allow unauthorized command execution or inaccurate access control decisions. Slash commands and context menu commands are not affected. This issue has been patched in version 1.2.0-rc.12, where ctx.commandName now consistently returns the actual canonical command name regardless of the alias used to invoke it.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-62378 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-034792-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N |
| Published | 2025-10-15 |
| Last modified | 2026-10-08 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-706: CWE-706
Related attack patterns (CAPEC)
CAPEC-177 Create files with the same name as files protected with a higher classification via CWE-706
CAPEC-641 DLL Side-Loading via CWE-706
CAPEC-48 Passing Local Filenames to Functions That Expect a URL via CWE-706
CAPEC-159 Redirect Access to Libraries via CWE-706
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A logic flaw in the message command handler of CommandKit versions 1.2.0-rc.1 through 1.2.0-rc.11 allows the ctx.commandName value to reflect the alias used instead of the actual command name, potentially leading to unintended behavior or security issues.
An attacker could exploit this flaw by invoking commands using aliases, which might lead to the execution of unintended middleware functions or command execution contexts, depending on how the bot is implemented.
Questions
What is CVE-2025-62378?
A logic flaw in the message command handler of CommandKit versions 1.2.0-rc.1 through 1.2.0-rc.11 allows the ctx.commandName value to reflect the alias used instead of the actual command name, potentially leading to unintended behavior or security issues.
What is the CVSS score for CVE-2025-62378?
CVE-2025-62378 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N. EPSS: 0.3%.
Is CVE-2025-62378 actively exploited?
No confirmed active exploitation of CVE-2025-62378 as of 2026-10-10.
How do I remediate CVE-2025-62378?
Priority: MEDIUM.
What systems are affected by CVE-2025-62378?
CVE-2025-62378 affects Canonical; Discord.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-08.