Skip to main content

mercury-agent CVE-2026-18997

| EUVDEUVD-2026-53711 LOW
Incorrect Authorization (CWE-863)
2026-08-06 VulDB GHSA-9hrj-55h5-5mr2
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 credentials or session
  2. Delivery
    Send crafted bg command request over network
  3. Exploit
    Bypass flawed authorization check in handleBgCommand
  4. Execution
    Execute unauthorized background commands
  5. Impact
    Read, 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.

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

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

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

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

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 privileges required; incorrect authorization causes limited CIA impact; no scope change beyond the vulnerable system.

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 - 06:22 NVD
MEDIUM LOW
CVSS changed
Aug 06, 2026 - 06:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Aug 06, 2026 - 04:30 cve.org
MEDIUM 5.3

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Rare
obscure open-source agent project, 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

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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