# CVE-2025-62378: CommandKit exposes incorrect command name in context object for message command aliases

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-10-13T17:43:51.000Z
- Modified: 2026-10-08T11:10:00.250Z
- Also known as: GHSA-fhwm-pc6r-4h2f
- Weaknesses: CWE-706
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- underctrl-io commandkit: >= 1.2.0-rc.1 < 1.2.0-rc.12
- commandkit (npm): from 1.2.0-rc.1 before 1.2.0-rc.12

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N`

## References

- <https://github.com/underctrl-io/commandkit/security/advisories/GHSA-fhwm-pc6r-4h2f> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62378> (advisory)
- <https://github.com/underctrl-io/commandkit/commit/440385a3e5de3fa3d2a76d23a807995cb29602fd> (web)
- <https://github.com/underctrl-io/commandkit> (package)

## Sources

- CVE List: [CVE-2025-62378](https://www.cve.org/CVERecord?id=CVE-2025-62378), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-fhwm-pc6r-4h2f](https://github.com/advisories/GHSA-fhwm-pc6r-4h2f), CC-BY-4.0, modified 2025-10-16
- NVD: [CVE-2025-62378](https://nvd.nist.gov/vuln/detail/CVE-2025-62378), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2025-62378 · Whole record: https://cve.day/CVE-2025-62378.json · Rebuilt by cve.day 2026-11-25T22:59:06.465Z
