commandkit@1.2.0-rc.3 vulnerabilities

Beginner friendly command & event handler for Discord.js

  • latest version

    0.1.10

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 years ago

  • licenses detected

    • >=0.0.2 <1.2.0-dev.20250920141635; >=1.2.0-rc.1 <1.2.0-rc.11
  • Direct Vulnerabilities

    Known vulnerabilities in the commandkit package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Use of Incorrectly-Resolved Name or Reference

    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.

    How to fix Use of Incorrectly-Resolved Name or Reference?

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

    >=1.2.0-rc.1 <1.2.0-rc.12