Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege credentials or session
-
DeliverySend crafted bg command request over network
-
ExploitBypass flawed authorization check in handleBgCommand
-
ExecutionExecute unauthorized background commands
-
ImpactRead, modify, or disrupt data within agent scope
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must hold some level of authenticated access to the mercury-agent instance - the CVSS 4.0 PR:L metric confirms that fully unauthenticated exploitation is not supported. The vulnerable feature is the bg Command Handler (Agent.handleBgCommand in src/core/agent.ts), which must be active and reachable over the network. The attack requires no user interaction and low complexity (AC:L, AT:N), meaning no race conditions or special timing are required. Exploitation is bounded by: (1) the requirement for at least low-privilege credentials or session access; (2) network reachability to the agent endpoint; (3) versions 1.1.12 and below - no version above this is confirmed affected. The impact is limited to the vulnerable system itself with no confirmed lateral scope change (SC:N/SI:N/SA:N). |
| Impact | The CVSS 4.0 base score of 5.3 (Medium) reflects a network-accessible, low-complexity attack requiring low privileges (PR:L), with limited CIA impact confined to the vulnerable system (VC:L/VI:L/VA:L, SC:N/SI:N/SA:N). The supplemental E:P metric confirms a proof-of-concept exploit exists, which meaningfully elevates practical exploitability above what the base score alone conveys. The vulnerability is not listed in CISA KEV, so active in-the-wild exploitation has not been confirmed by government sources - these are distinct signals and should not be conflated. No EPSS score was provided, leaving probabilistic exploitation rate unquantified. The most significant risk amplifier is the combination of a public POC and an unresponsive vendor with no patch available, leaving all deployments on 1.1.12 and below permanently exposed until a fix is released. The low CIA impact metrics and PR:L requirement mean this is not a catastrophic flaw in isolation, but the lack of remediation path makes it a sustained, unmitigated exposure. |
| Exploit ScenarioDerived | An attacker with a low-privileged account on a network-accessible mercury-agent instance crafts a manipulated input targeting the Agent.handleBgCommand function, exploiting the flawed authorization logic to issue background commands beyond their permitted scope. The publicly available proof-of-concept exploit code (GitHub issue #73) lowers the technical barrier significantly, enabling exploitation by attackers without deep reverse-engineering capability. The resulting impact includes low-level unauthorized reads, writes, or availability disruption within the vulnerable agent's operational boundary. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 06, 2026
Incorrect authorization in cosmicstack-labs mercury-agent through version 1.1.12 allows remote authenticated attackers to bypass access controls via the bg Command Handler. The flaw (CWE-863) resides in Agent.handleBgCommand within src/core/agent.ts, where a present-but-flawed authorization check can be manipulated to execute unauthorized background commands. A proof-of-concept exploit is publicly available via GitHub issue #73; the vendor has not responded to responsible disclosure and no patch exists at time of analysis.
RemediationAI
No vendor-released patch has been identified at time of analysis - the maintainer has not responded to the responsible disclosure submitted via GitHub issue #73. As a compensating control, administrators should restrict network access to the mercury-agent instance to only the minimum set of trusted, authenticated principals, reducing the attack surface for the incorrect authorization bypass. If the background command handler feature (bg Command Handler) is not operationally required, disabling or removing access to that code path eliminates exposure entirely, though this may affect agent functionality. Enabling detailed audit logging of all background command invocations can aid in detecting exploitation attempts. Organizations should monitor the project repository at https://github.com/cosmicstack-labs/mercury-agent/ for a patched release and apply it immediately upon availability. If operational risk cannot be accepted without a patch, consider suspending use of affected mercury-agent instances.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability affects the bg Command Handler component of mercury-agent, a software agent project by cosmicstack-labs (CPE: cpe:2.3:a:cosmicstack-labs:mercury-agent:*:*:*:*:*:*:*:*). The root cause is CWE-863 (Incorrect Authorization): unlike CWE-306 (Missing Authentication), an authorization check is present in the handleBgCommand function but its logic is incorrectly implemented, allowing callers to manipulate inputs in ways that satisfy the check without having genuinely authorized permissions. This class of flaw commonly arises when authorization decisions rely on client-supplied data or fail to validate the full privilege context of the calling principal against the requested operation. The affected code path is src/core/agent.ts in the Agent class.
Know when Mercury Agent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Network-reachable with low privileges required; incorrect authorization causes limited CIA impact; no scope change beyond the vulnerable system.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A vulnerability was found in cosmicstack-labs mercury-agent up to 1.1.12. This issue affects the function Agent.handleBgCommand of the file src/core/agent.ts of the component bg Command Handler. Performing a manipulation results in incorrect authorization. It is possible to initiate the attack remotely. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Mercury Agent
View allIncorrect privilege assignment in cosmicstack-labs mercury-agent (all versions through 1.1.12) allows authenticated remo
Improper 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
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
EUVD-2026-53711
GHSA-9hrj-55h5-5mr2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB