Use of Incorrectly-Resolved Name or Reference Affecting commandkit package, versions >=1.2.0-rc.1 <1.2.0-rc.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-COMMANDKIT-13543887
  • published14 Oct 2025
  • disclosed13 Oct 2025
  • creditAvraj

Introduced: 13 Oct 2025

NewCVE-2025-62378  (opens in a new tab)
CWE-706  (opens in a new tab)

How to fix?

Upgrade commandkit to version 1.2.0-rc.12 or higher.

Overview

commandkit is a Beginner friendly command & event handler for Discord.js

Affected versions of this package are vulnerable to Use of Incorrectly-Resolved Name or Reference due to the ctx.commandName property exposing the alias used instead of the canonical command name in both middleware and command execution contexts. An attacker can bypass intended access controls or execute unauthorized commands by invoking commands through their aliases, potentially leading to incorrect permission checks or audit logging.

##Workaround

This vulnerability can be mitigated by using ctx.command.data.command.name for permission validations or by including all command aliases in permission logic.

References

CVSS Base Scores

version 4.0
version 3.1