CVE-2026-18997 cosmicstack-labs mercury-agent bg agent.ts Agent.handleBgCommand authorization
Remote attackers can bypass authorization in the background command handler to execute unauthorized actions, requiring immediate attention from users of the library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-18997?
CVE-2026-18997 is a medium-severity missing authorization vulnerability in cosmicstack-labs mercury-agent, published on 6 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2026-18997?
How do I fix CVE-2026-18997?
No fix has been published for CVE-2026-18997 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-18997 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-18997 exists.
Sources
Also known as GHSA-9hrj-55h5-5mr2.