CVE-2026-18997: Incorrect Authorization in cosmicstack-labs mercury-agent
CVE-2026-18997 is a medium severity vulnerability in cosmicstack-labs mercury-agent up to version 1.1.12. It involves incorrect authorization in the Agent.handleBgCommand function, allowing remote attackers to manipulate background commands without proper authorization. The vulnerability has a CVSS 4.0 base score of 5.3. The project has been informed but has not yet responded or issued a fix. Exploit code has been publicly disclosed, but no known active exploitation in the wild is reported.
AI Analysis
Technical Summary
The vulnerability affects the mercury-agent component of cosmicstack-labs, specifically the Agent.handleBgCommand function in src/core/agent.ts. Improper authorization checks allow remote attackers to manipulate background commands, potentially bypassing intended access controls. The issue impacts all versions up to and including 1.1.12. Although an exploit is publicly available, there is no indication of widespread exploitation. The vendor has not provided a remediation or patch at this time.
Potential Impact
Successful exploitation could allow an attacker with network access to the mercury-agent service to perform unauthorized background commands, potentially leading to unauthorized actions within the affected system. The CVSS score of 5.3 reflects a medium impact with low complexity and no user interaction required. There is no evidence of active exploitation in the wild.
Mitigation Recommendations
No official fix or patch has been released by the vendor. Users should monitor the vendor's communications for updates. Until a patch is available, consider restricting network access to the mercury-agent service to trusted sources only to reduce exposure. Review and implement additional access controls where possible to mitigate unauthorized command execution.
CVE-2026-18997: Incorrect Authorization in cosmicstack-labs mercury-agent
Description
CVE-2026-18997 is a medium severity vulnerability in cosmicstack-labs mercury-agent up to version 1.1.12. It involves incorrect authorization in the Agent.handleBgCommand function, allowing remote attackers to manipulate background commands without proper authorization. The vulnerability has a CVSS 4.0 base score of 5.3. The project has been informed but has not yet responded or issued a fix. Exploit code has been publicly disclosed, but no known active exploitation in the wild is reported.
CVSS v4.0
Score 5.3medium
Affected software
cosmicstack-labs
mercury-agent
pkg:github/cosmicstack-labs/mercury-agentcpe:2.3:a:cosmicstack-labs:mercury-agent:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability affects the mercury-agent component of cosmicstack-labs, specifically the Agent.handleBgCommand function in src/core/agent.ts. Improper authorization checks allow remote attackers to manipulate background commands, potentially bypassing intended access controls. The issue impacts all versions up to and including 1.1.12. Although an exploit is publicly available, there is no indication of widespread exploitation. The vendor has not provided a remediation or patch at this time.
Potential Impact
Successful exploitation could allow an attacker with network access to the mercury-agent service to perform unauthorized background commands, potentially leading to unauthorized actions within the affected system. The CVSS score of 5.3 reflects a medium impact with low complexity and no user interaction required. There is no evidence of active exploitation in the wild.
Mitigation Recommendations
No official fix or patch has been released by the vendor. Users should monitor the vendor's communications for updates. Until a patch is available, consider restricting network access to the mercury-agent service to trusted sources only to reduce exposure. Review and implement additional access controls where possible to mitigate unauthorized command execution.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulDB
- Date Reserved
- 2026-08-05T19:41:35.352Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a741e9bbf8831d53936e7cc
Added to database: 08/06/2026, 05:41:47 UTC
Last enriched: 08/13/2026, 17:18:49 UTC
Last updated: 09/19/2026, 22:01:32 UTC
Views: 55
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.