Skip to main content

mercury-agent CVE-2026-18996

| EUVDEUVD-2026-53709 LOW
Incorrect Privilege Assignment (CWE-266)
2026-08-06 VulDB GHSA-ccg4-hv3q-9622
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege API credentials
  2. Delivery
    Send crafted run_command request
  3. Exploit
    Trigger checkShellCommand logic flaw
  4. Execution
    Gain incorrect privilege assignment
  5. Impact
    Execute shell commands beyond authorized scope

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Privilege assignment review
Exploitation Conditions

Exploitation requires a valid low-privilege account or API credential capable of reaching the run_command Handler over the network - the CVSS 4.0 vector PR:L confirms authentication is mandatory, meaning unauthenticated exploitation is not indicated. The affected code path (PermissionManager.checkShellCommand in src/capabilities/permissions.ts) must be reachable, which is a default part of the mercury-agent capability surface. No user interaction by a victim is required (UI:N). Exploitation is limited by the authentication barrier and by the moderate impact ceiling (VC:L/VI:L/VA:L), meaning fully unauthenticated or zero-click exploitation is not supported by the available data. Deployments that restrict run_command Handler access to known trusted identities or isolate the agent behind network controls would further limit exploitability.

Impact

The CVSS 4.0 base score of 5.3 (Medium) with vector AV:N/AC:L/AT:N/PR:L/UI:N reflects a network-exploitable flaw requiring low-privilege authentication, with limited confidentiality, integrity, and availability impact (VC:L/VI:L/VA:L) and no lateral scope change (SC:N/SI:N/SA:N). The exploit maturity modifier E:P confirms a publicly available proof-of-concept, which meaningfully elevates operational risk beyond the base score alone. The vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed widespread active exploitation at time of analysis; however, the combination of public exploit code and vendor non-response creates an unmitigated window of exposure. The limited impact metrics suggest exploitation yields incremental privilege escalation rather than full system compromise, but in an agent framework context - where shell command execution is a primary capability - even a partial privilege bypass carries meaningful risk depending on the deployment environment. The absence of a patch and vendor silence are the primary risk amplifiers here.

Exploit ScenarioDerived

A low-privileged authenticated user with access to the mercury-agent API sends a crafted request to the run_command Handler, deliberately manipulating the parameters evaluated by PermissionManager.checkShellCommand. Due to the incorrect privilege assignment logic, the handler processes the command as if the caller holds a higher privilege tier, executing shell commands beyond the caller's authorized scope. A public proof-of-concept demonstrating this technique is available via GitHub issue #72 in the cosmicstack-labs/mercury-agent repository.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 06, 2026

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.

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.

Affected VersionsENISA

mercury-agent 1.1.7
mercury-agent 1.1.8
mercury-agent 1.1.4
mercury-agent 1.1.1
mercury-agent 1.1.11
mercury-agent 1.1.3
mercury-agent 1.1.10
mercury-agent 1.1.5
mercury-agent 1.1.2
mercury-agent 1.1.0
mercury-agent 1.1.12
mercury-agent 1.1.6
mercury-agent 1.1.9

Affected Packages

euvd mercury_agent no fix

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

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.

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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
vuln.today AI 6.3 MEDIUM

Network-reachable with low-privilege authentication required (PR:L); limited C/I/A impact consistent with partial privilege bypass, no scope change.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Aug 06, 2026 - 05:22 NVD
MEDIUM LOW
CVSS changed
Aug 06, 2026 - 05:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Aug 06, 2026 - 04:15 cve.org
MEDIUM 5.3

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

Threat Intelligence Overview

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Rare
obscure niche agent framework, minimal known enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy