CVE-2025-62378
JavaScript vulnerability analysis and mitigation

Overview

CommandKit, a discord.js meta-framework, was found to contain a logic flaw in its message command handler affecting versions 1.2.0-rc.1 through 1.2.0-rc.11. The vulnerability, identified as CVE-2025-62378, was discovered and disclosed in October 2025. The flaw specifically impacts how the commandName property is exposed in both middleware functions and command execution contexts when handling command aliases (GitHub Advisory).

Technical details

The vulnerability stems from a logic flaw where when a message command is invoked using an alias, the ctx.commandName value incorrectly reflects the alias instead of the canonical command name. This behavior occurs in both middleware functions and within the command's run function. The issue has been assigned a CVSS v3.1 score of 6.1 (Moderate) with a vector string of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N, indicating local attack vector, low attack complexity, and low privileges required (GitHub Advisory).

Impact

The vulnerability could lead to unauthorized command execution or inaccurate access control decisions. 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. The impact primarily affects the integrity of command execution, with potential for low confidentiality impact (GitHub Advisory).

Mitigation and workarounds

The vulnerability 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).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62410CRITICAL9.4
  • JavaScriptJavaScript
  • happy-dom
NoYesOct 15, 2025
CVE-2025-62381HIGH8.3
  • JavaScriptJavaScript
  • sveltekit-superforms
NoYesOct 15, 2025
CVE-2025-62374MEDIUM6.4
  • JavaScriptJavaScript
  • parse
NoYesOct 14, 2025
CVE-2025-62378MEDIUM6.1
  • JavaScriptJavaScript
  • commandkit
NoYesOct 15, 2025
CVE-2025-62380LOW2.9
  • JavaScriptJavaScript
  • mailgen
NoYesOct 15, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management