CVE-2026-18997 Details
Description
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.
An authorization bypass vulnerability has been identified in Cosmicstack Labs Mercury-Agent versions through 1.1.12. The issue resides in the Background Command Handler component, specifically within the Agent.handleBgCommand function in src/core/agent.ts. This vulnerability allows authenticated users to execute arbitrary shell commands without the necessary authorization approval, bypassing the application's intended permission management. The flaw can be exploited remotely via the application's web interface.
Users can update to Mercury-Agent version 1.1.13 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 6, 2026CISA-ADP
Assessed Aug 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/cosmicstack-labs/mercury-agent/ | [email protected] | Source CodeVendor |
| https://github.com/cosmicstack-labs/mercury-agent/issues/73 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://vuldb.com/cve/CVE-2026-18997 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/862627 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/386380 | [email protected] | BundlePermission Required |
| https://vuldb.com/vuln/386380/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-285 | Improper Authorization | [email protected] |
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cosmicstack-labs mercury-agent | <= 1.1.12 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 6, 2026 | CVE Modified | CISA-ADP |
| Aug 6, 2026 | New CVE Received | [email protected] |
Volerion