Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable with low-privilege authentication required (PR:L); limited C/I/A impact consistent with partial privilege bypass, no scope change.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability has been found in cosmicstack-labs mercury-agent up to 1.1.12. This vulnerability affects the function PermissionManager.checkShellCommand of the file src/capabilities/permissions.ts of the component run_command Handler. Such manipulation leads to incorrect privilege assignment. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
AnalysisAI
Incorrect privilege assignment in cosmicstack-labs mercury-agent (all versions through 1.1.12) allows authenticated remote attackers to bypass shell command permission checks via the run_command Handler. The flaw resides in the PermissionManager.checkShellCommand function within src/capabilities/permissions.ts, where privilege levels are not correctly validated, potentially enabling a low-privileged user to execute shell commands exceeding their authorized scope. A public proof-of-concept exploit exists via GitHub issue #72, and the project maintainer has not responded to responsible disclosure, leaving no vendor-released patch available at time of analysis.
Technical ContextAI
mercury-agent is a TypeScript-based agent framework developed by cosmicstack-labs, designed to handle capability-based command execution. The vulnerable component is the PermissionManager class in src/capabilities/permissions.ts, specifically the checkShellCommand method invoked by the run_command Handler. CWE-266 (Incorrect Privilege Assignment) identifies the root cause: the permission-checking logic fails to properly assign or enforce privilege tiers when evaluating shell command requests, meaning a caller with low-level credentials can trigger command execution paths intended only for higher-privilege roles. The CPE cpe:2.3:a:cosmicstack-labs:mercury-agent:*:*:*:*:*:*:*:* covers all releases up to and including 1.1.12 as the affected scope.
RemediationAI
No vendor-released patch is available at time of analysis - the project maintainer was notified via a responsible disclosure issue report but has not responded. Operators running mercury-agent versions up to 1.1.12 should consider the following compensating controls: restrict access to the run_command Handler endpoint at the network or API-gateway level so that only explicitly trusted, audited principals can invoke it, reducing the attack surface even if the privilege check itself is flawed; enforce strict network segmentation so the agent is not reachable from untrusted network segments; and monitor shell command execution logs for privilege anomalies or unexpected command patterns. Note that restricting the run_command Handler may degrade intended agent functionality. Organizations should track the upstream repository (https://github.com/cosmicstack-labs/mercury-agent/) and the VulDB entry (https://vuldb.com/vuln/386379) for patch availability and respond immediately by upgrading once a fixed release is published.
More in Mercury Agent
View allImproper authorization in cosmicstack-labs mercury-agent's PermissionManager.checkShellCommand function (versions 1.1.0
Improper authorization in cosmicstack-labs mercury-agent's delegate_task tool allows a remotely authenticated low-privil
Incorrect authorization in cosmicstack-labs mercury-agent through version 1.1.12 allows remote authenticated attackers t
Server-side request forgery in cosmicstack-labs Mercury Agent (versions 1.1.0 through 1.1.13) lets an attacker who can i
Mercury Agent versions through 1.1.13 gate shell execution by validating commands before canonicalizing them, so a calle
A local information-disclosure weakness in cosmicstack-labs mercury-agent through version 1.2.0 lets a low-privileged lo
Same weakness CWE-266 – Incorrect Privilege Assignment
View allSame technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53709
GHSA-ccg4-hv3q-9622