{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/48013?format=json","vulnerability_id":"VCID-7crj-91hb-kffg","summary":"CommandKit has incorrect command name exposure in context object for message command aliases\nA logic flaw exists in the message command handler of CommandKit 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.\n\nAlthough 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, and the documentation describes middleware as suitable for “logging, authentication, permission checks, or any other cross-cutting concerns.” As a result, developers reasonably expect `ctx.commandName` to return the canonical command name and may rely on it for security-sensitive logic.\n\nDevelopers 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.","aliases":[{"alias":"CVE-2025-62378"},{"alias":"GHSA-fhwm-pc6r-4h2f"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/70831?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.12","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.12"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/70830?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.1"},{"url":"http://public2.vulnerablecode.io/api/packages/883588?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.2"},{"url":"http://public2.vulnerablecode.io/api/packages/883589?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.3"},{"url":"http://public2.vulnerablecode.io/api/packages/883590?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.4"},{"url":"http://public2.vulnerablecode.io/api/packages/883591?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.5","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.5"},{"url":"http://public2.vulnerablecode.io/api/packages/883592?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.6","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.6"},{"url":"http://public2.vulnerablecode.io/api/packages/883593?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.7","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.7"},{"url":"http://public2.vulnerablecode.io/api/packages/883594?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.8","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.8"},{"url":"http://public2.vulnerablecode.io/api/packages/883595?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.9","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.9"},{"url":"http://public2.vulnerablecode.io/api/packages/883596?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.10","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.10"},{"url":"http://public2.vulnerablecode.io/api/packages/513868?format=json","purl":"pkg:npm/commandkit@1.2.0-rc.11","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-7crj-91hb-kffg"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/commandkit@1.2.0-rc.11"}],"references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2025-62378","reference_id":"","reference_type":"","scores":[{"value":"0.00018","scoring_system":"epss","scoring_elements":"0.05046","published_at":"2026-06-06T12:55:00Z"},{"value":"0.00018","scoring_system":"epss","scoring_elements":"0.0504","published_at":"2026-06-09T12:55:00Z"},{"value":"0.00018","scoring_system":"epss","scoring_elements":"0.05","published_at":"2026-06-08T12:55:00Z"},{"value":"0.00018","scoring_system":"epss","scoring_elements":"0.05038","published_at":"2026-06-07T12:55:00Z"},{"value":"0.00018","scoring_system":"epss","scoring_elements":"0.05061","published_at":"2026-06-05T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2025-62378"},{"reference_url":"https://github.com/underctrl-io/commandkit","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/underctrl-io/commandkit"},{"reference_url":"https://github.com/underctrl-io/commandkit/commit/440385a3e5de3fa3d2a76d23a807995cb29602fd","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/underctrl-io/commandkit/commit/440385a3e5de3fa3d2a76d23a807995cb29602fd"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62378","reference_id":"CVE-2025-62378","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62378"},{"reference_url":"https://github.com/advisories/GHSA-fhwm-pc6r-4h2f","reference_id":"GHSA-fhwm-pc6r-4h2f","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-fhwm-pc6r-4h2f"},{"reference_url":"https://github.com/underctrl-io/commandkit/security/advisories/GHSA-fhwm-pc6r-4h2f","reference_id":"GHSA-fhwm-pc6r-4h2f","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N"},{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-10-15T17:13:11Z/"}],"url":"https://github.com/underctrl-io/commandkit/security/advisories/GHSA-fhwm-pc6r-4h2f"}],"weaknesses":[{"cwe_id":706,"name":"Use of Incorrectly-Resolved Name or Reference","description":"The product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."}],"exploits":[],"severity_range_score":"4.0 - 6.9","exploitability":"0.5","weighted_severity":"6.2","risk_score":3.1,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-7crj-91hb-kffg"}