CVE-2025-62378 Details
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.
A logic flaw has been identified in CommandKit, a meta-framework for building Discord bots with discord.js. This vulnerability exists in versions 1.2.0-rc.1 prior to 1.2.0-rc.11 and pertains to the message command handler's treatment of command aliases. When a command is invoked using an alias, the 'ctx.commandName' property reflects the alias instead of the canonical command name. This discrepancy occurs in both middleware functions and the command's execution context. Although not explicitly stated in the documentation, this behavior contradicts the implicit expectation set by CommandKit's examples, which suggest that 'ctx.commandName' should represent the official command identifier. As a result, developers relying on this property for critical logic, such as permission checks or audit logging, may inadvertently introduce errors that could lead to unauthorized command execution or incorrect access control decisions. It is important to note that this vulnerability does not affect slash commands or context menu commands.
Users can upgrade to CommandKit version 1.2.0-rc.12, where the issue has been fixed. If an immediate upgrade is not possible, 'ctx.command.data.command.name' can be used for permission validations, or all command aliases can be included in the permission logic.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 15, 2025CISA-ADP
Assessed Oct 15, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/underctrl-io/commandkit/security/advisories/GHSA-fhwm-pc6r-4h2f | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-706 | Use of Incorrectly-Resolved Name or Reference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| underctrl-io CommandKit | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 8, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2025 | New CVE Received | [email protected] |
Volerion