Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-62378

MEDIUM 6.1EPSS 11%

CommandKit exposes incorrect command name in context object for message command aliases

Also known as GHSA-fhwm-pc6r-4h2f

Mitigation

  • Upgrade commandkit to 1.2.0-rc.12 or later.

Who should check

  • Projects that depend on npm package commandkit (>= 1.2.0-rc.1, < 1.2.0-rc.12)
  • Anyone running underctrl-io commandkit >= 1.2.0-rc.1 < 1.2.0-rc.12

Vulnerability facts

Affected
commandkit >= 1.2.0-rc.1, < 1.2.0-rc.12
Fixed in
1.2.0-rc.12
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: High
  • Availability impact: None
EPSS
0.27% chance of exploitation in 30 days (percentile 11, 2026-11-26)
CWE
CWE-706
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm commandkit>= 1.2.0-rc.1, < 1.2.0-rc.121.2.0-rc.12osv
underctrl-io commandkit>= 1.2.0-rc.1 < 1.2.0-rc.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-62378. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-62378.md
Affected: commandkit >= 1.2.0-rc.1, < 1.2.0-rc.12
Fixed in: 1.2.0-rc.12

Steps:
1. Search this machine and project for commandkit (npm), underctrl-io commandkit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-62378 being exploited?

There is no confirmed exploitation: CVE-2025-62378 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-62378?

Medium: CVSS 6.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-62378?

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

Is there a fix for CVE-2025-62378?

Yes. Fixed in 1.2.0-rc.12. Upgrade commandkit to 1.2.0-rc.12 or later.

How do I check if I'm affected by CVE-2025-62378?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors