Medium severity · published Aug 6, 2026
CVE-2026-18997
cosmicstack-labs mercury-agent bg agent.ts Agent.handleBgCommand authorization
6.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 30% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ME
mercury-agent · cosmicstack-labs
1.1.0; 1.1.1; 1.1.2; 1.1.3; 1.1.4; 1.1.5; +7 more · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-18997
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-18997
github.com
https://github.com/cosmicstack-labs/mercury-agent/
github.com
https://github.com/cosmicstack-labs/mercury-agent/issues/73
vuldb.com
https://vuldb.com/cve/CVE-2026-18997
vuldb.com
https://vuldb.com/submit/862627
vuldb.com
https://vuldb.com/vuln/386380
vuldb.com
https://vuldb.com/vuln/386380/cti
More from mercury-agent
6.3
CVE-2026-90814
cosmicstack-labs mercury-agent GitHub API github.ts githubRequest server-side request forgery
6.3
CVE-2026-90810
cosmicstack-labs mercury-agent Shell Command Permission Check permissions.ts PermissionManager.checkShellCommand improper authorization
6.3
CVE-2026-18998
cosmicstack-labs mercury-agent delegate_task Tool sub-agent.ts SubAgent.run improper authorization
6.3
CVE-2026-18996
cosmicstack-labs mercury-agent run_command permissions.ts PermissionManager.checkShellCommand privileges assignment
4.3
CVE-2026-90813
cosmicstack-labs mercury-agent Shell Command Execution permissions.ts checkShellCommand validate before canonicalize
