SCA: security update for commandkit (GHSA-fhwm-pc6r-4h2f)

medium Tenable Cloud Security Plugin ID 435597

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2025-62378)

See Also

https://github.com/advisories/GHSA-fhwm-pc6r-4h2f

Plugin Details

Severity: Medium

ID: 435597

Version: Revision 1.6

Type: Local

Family: SCA Checks

Published: 10/13/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3.5

Percentile: 51.69

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 5.2

Temporal Score: 3.8

Vector: CVSS2#AV:L/AC:L/Au:S/C:P/I:C/A:N

CVSS Score Source: CVE-2025-62378

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/13/2025

Vulnerability Publication Date: 10/13/2025

Reference Information

CVE: CVE-2025-62378

cwe: CWE-706