CVE-2026-18996 cosmicstack-labs mercury-agent run_command permissions.ts PermissionManager.checkShellCommand privileges assignment
Remote attackers can exploit incorrect privilege assignment in the run_command handler to escalate privileges within the mercury-agent 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-18996?
CVE-2026-18996 is a medium-severity 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 has been found in cosmicstack-labs mercury-agent up to 1.1.12. This vulnerability affects the function PermissionManager.checkShellCommand of the file src/capabilities/permissions.ts of the component run_command Handler. Such manipulation leads to incorrect privilege assignment. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Weakness: CWE-266
Which versions are affected by CVE-2026-18996?
How do I fix CVE-2026-18996?
No fix has been published for CVE-2026-18996 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-18996 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-18996 exists.
Sources
Also known as GHSA-ccg4-hv3q-9622.