
Cloud Vulnerability DB
A community-led vulnerabilities database
CommandKit, a discord.js meta-framework for building Discord bots, contains a logic flaw in versions 1.2.0-rc.1 through 1.2.0-rc.11 that affects how the commandName property is exposed in the message command handler. The vulnerability was discovered and disclosed on October 13, 2025, affecting the JavaScript ecosystem. The issue has been assigned CVE-2025-62378 with a CVSS v3.1 score of 6.1 (Medium) (GitHub Advisory, NVD).
The vulnerability stems from incorrect handling of command aliases in the message command handler. When a message command is invoked using an alias, the ctx.commandName value reflects the alias instead of the canonical command name in both middleware functions and within the command's run function. This behavior contradicts the implicit documentation and examples that suggest ctx.commandName should represent the canonical command identifier. The issue is tracked as CWE-706 (Use of Incorrectly-Resolved Name or Reference) and has a CVSS vector of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N (Miggo, GitHub Advisory).
The vulnerability can lead to unauthorized command execution or inaccurate access control decisions when developers rely on ctx.commandName for security-sensitive logic such as permission checks, rate limiting, or audit logging. The impact is particularly significant for applications that use this value for security validations (GitHub Advisory).
The 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. For users unable to upgrade immediately, two workarounds are available: use ctx.command.data.command.name for permission validations, or include all command aliases in permission logic (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."