# CVE-2026-54051: Jovancoding Network-AI OS command injection in agent sandbox

Source: https://junglewise.ai/threats/cve-2026-54051-jovancoding-network-ai-os-command-injection-in-agent-sandbox  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-20. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-54051 · Severity: critical · CVSS 9.9 · Published 2026-07-20

Network-AI is a tool used to manage and coordinate multiple AI agents. A security flaw in its sandbox allows these agents to bypass command restrictions and run unauthorized programs on the host server. If an agent is compromised or malicious, it could take full control of the underlying system, potentially leading to data theft or service disruption.

Technologies: [Jovancoding Network-AI](https://junglewise.ai/threats/technologies/network-ai), [network-ai (npm)](https://junglewise.ai/threats/technologies/npm-network-ai). Vendors: [Jovancoding](https://junglewise.ai/threats/vendors/jovancoding), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-54051 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-54051 being exploited in the wild.

**How severe is CVE-2026-54051?** Critical severity, with a CVSS score of 9.9, published 20 July 2026.

**Which products and versions are affected?** Jovancoding Network-AI < 5.9.1; network-ai (npm) SEMVER:introduced=0,fixed=5.9.1.

**Is there a fix for CVE-2026-54051?** Yes. network-ai (npm): upgrade to 5.9.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-54051 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-54051?** Check whether you run Jovancoding Network-AI or network-ai (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- network-ai (npm): upgrade to 5.9.1 or later

  ```sh
  npm install network-ai@5.9.1
  ```


## Technical details

Network-AI prior to version 5.9.1 is vulnerable to OS command injection (CWE-78) within its agent sandbox. The `SandboxPolicy.isCommandAllowed` function uses glob-matching to validate commands against an allowlist, but the `ShellExecutor` subsequently executes these strings using `/bin/sh -c` (or `cmd.exe /c`). Because the allowlist matching does not account for shell metacharacters, an attacker can append malicious commands (e.g., using `;`, `&`, or `|`) to a string that otherwise matches a wildcard pattern like `git *`. This results in arbitrary code execution with the privileges of the orchestrator process. The vulnerability is fixed in v5.9.1 by switching to `spawn` with `shell: false` and implementing a quote-aware tokenizer that rejects unquoted shell metacharacters.

## Affected products

- Jovancoding Network-AI < 5.9.1

## Identifiers

- CVE-2026-54051
- GHSA-qw6v-5fcf-5666

## Timeline

- 2026-06-02: advisory: GitHub Security Advisory published
- 2026-07-20: disclosed: CVE-2026-54051 published to NVD
- 2026-07-20: patched: Fixed in version 5.9.1

## References

- [https://github.com/Jovancoding/Network-AI/commit/379f77656b578144e03415c5b134d8309a4b5792](https://github.com/Jovancoding/Network-AI/commit/379f77656b578144e03415c5b134d8309a4b5792)
- [https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-qw6v-5fcf-5666](https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-qw6v-5fcf-5666)

## Related threats

- [Network-AI A2AServer missing authentication in task operations](https://junglewise.ai/threats/cve-2026-120314-network-ai-from-5-14-0-before-5-15-5-contains-a-missing)
- [Network-AI path traversal in InputSanitizer.sanitizePath](https://junglewise.ai/threats/cve-2026-120313-network-ai-before-5-15-5-contains-a-path-traversal-vulnerability)
- [Network-AI AgentVCR path traversal in cassette name](https://junglewise.ai/threats/cve-2026-120312-network-ai-from-5-13-4-before-5-15-5-contains-a-path-traversal)
- [Network-AI FileJobStore path traversal in job ID handling](https://junglewise.ai/threats/cve-2026-120311-network-ai-from-5-13-4-before-5-15-5-contains-a-path-traversal)
- [Network-AI security control bypass in ClaudeHookBridge](https://junglewise.ai/threats/cve-2026-109331-network-ai-from-5-14-0-before-5-15-2-contains-a-security-control)
