CVE-2026-90813 cosmicstack-labs mercury-agent Shell Command Execution permissions.ts checkShellCommand validate before canonicalize

Medium 5.3 Published Updated

Remote attackers can execute arbitrary shell commands in cosmicstack-labs mercury-agent due to improper validation order in permission checks.

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-90813?

CVE-2026-90813 is a medium-severity command injection vulnerability in cosmicstack-labs mercury-agent, published on 14 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability was detected in cosmicstack-labs mercury-agent up to 1.1.13. Affected is the function checkShellCommand of the file src/capabilities/permissions.ts of the component Shell Command Execution. The manipulation results in incorrect behavior order: validate before canonicalize. The attack may be launched remotely. The exploit is now public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Weakness: CWE-180, CWE-179

Which versions are affected by CVE-2026-90813?

How do I fix CVE-2026-90813?

No fix has been published for CVE-2026-90813 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-90813 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-90813 exists.

Sources

Also known as GHSA-9hv7-6jr2-3g59.

Is CVE-2026-90813 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free