Vulnerability DatabaseGHSA-fhwm-pc6r-4h2f

GHSA-fhwm-pc6r-4h2f
JavaScript vulnerability analysis and mitigation

Overview

A logic flaw was discovered in CommandKit's message command handler affecting versions >= 1.2.0-rc.1 and <= 1.2.0-rc.11. The vulnerability (GHSA-fhwm-pc6r-4h2f) relates to how the commandName property is exposed in the context object when handling command aliases. The issue was disclosed on October 11, 2025, and affects the npm package commandkit (GitHub Advisory).

Technical details

The vulnerability has a CVSS score of 6.1 (Moderate) with a vector of CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N. The core issue lies in the Context.commandName getter, which incorrectly returns the alias instead of the canonical command name when a message command is invoked using an alias. This behavior affects both middleware functions and command execution contexts. The vulnerability is classified under CWE-706 (Use of Incorrectly-Resolved Name or Reference) (GitHub Advisory, Miggo Database).

Impact

The vulnerability can lead to unauthorized command execution or inaccurate access control decisions in security-sensitive cases. This particularly affects middleware used for permission checks, rate limiting, or audit logging. The impact is limited to message commands, while slash commands and context menu commands remain unaffected (GitHub Advisory).

Mitigation and workarounds

The issue has been fixed in version 1.2.0-rc.12, where ctx.commandName now consistently returns the actual command name regardless of the alias used. For users unable to upgrade immediately, two workarounds are available: use ctx.command.data.command.name for permission validations, or include all command aliases in the permission logic (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-j44m-5v8f-gc9cHIGH7.7
  • JavaScriptJavaScript
  • flowise
NoYesOct 10, 2025
CVE-2025-11183MEDIUM6.9
  • JavaScriptJavaScript
  • qwc2
NoYesOct 13, 2025
CVE-2025-62374MEDIUM6.4
  • JavaScriptJavaScript
  • parse
NoYesOct 14, 2025
GHSA-fhwm-pc6r-4h2fMEDIUM6.1
  • JavaScriptJavaScript
  • commandkit
NoYesOct 13, 2025
CVE-2025-62366LOW2.9
  • JavaScriptJavaScript
  • mailgen
NoYesOct 14, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management