{"id":"CVE-2026-54051","published":"2026-07-20T16:24:20Z","modified":"2026-07-21T16:03:01Z","title":"Network-AI has an an OS Command Injection issue","vendor":"Jovancoding","product":"Network-AI","tier":"tail","description":{"text":"Network-AI is a TypeScript/Node.js multi-agent orchestrator. Prior to version 5.9.1, the agent sandbox gates shell commands behind an allowlist (`SandboxPolicy.isCommandAllowed`), which THREAT_MODEL.md calls the main control against a compromised agent (Adversary 3.2). The allowlist glob-matches the whole command string, but `ShellExecutor` runs that string through `/bin/sh -c`. So any wildcard allow such as `git *`, `npm *` or `node *` also matches `git status; <anything>`, and a scoped command becomes arbitrary execution. The issue is fixed in v5.9.1. `ShellExecutor` now executes via `spawn(file, args, { shell: false })` using a quote-aware parsed argv, so no shell is invoked. `SandboxPolicy.isCommandAllowed` and the new `SandboxPolicy.tokenizeCommand` reject any unquoted shell metacharacter (`; & | $ ` ` ` ( ) < > { }` newline) or unterminated quote before the allowlist glob match; quoted metacharacters are preserved as literal argument data. Users should upgrade to `network-ai@5.9.1` or later. As defense in depth, avoid broad wildcard allowlist entries such as `node *` / `npm *` which are direct code execution by design.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00666,"percentile":0.46814,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-qw6v-5fcf-5666","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Jovancoding/Network-AI/commit/379f77656b578144e03415c5b134d8309a4b5792","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":9.36},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"jovancoding","affectedVersions":[{"vendor":"Jovancoding","product":"Network-AI","versions":["< 5.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-21T16:01:55.719735Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"network-ai","vulnerableRanges":["<5.9.1"],"patched":["5.9.1"],"from":["GHSA-qw6v-5fcf-5666"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-46003","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jovancoding-network-ai-cve-2026-48814","parents":[{"from":"CVE-2026-46701","to":"CVE-2026-54051","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["skill.json"],"commits":["https://github.com/Jovancoding/Network-AI/commit/dc5048112283f3f4eb6c06dd2bf5aa93ef9339be","https://github.com/Jovancoding/Network-AI/commit/379f77656b578144e03415c5b134d8309a4b5792"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-42856","published":"2026-05-11","fixed":"5.1.3","kev":false},{"cve":"CVE-2026-46701","published":"2026-07-20","fixed":"5.4.5","kev":false},{"cve":"CVE-2026-48814","published":"2026-06-17","fixed":"5.7.2","kev":false,"link":{"from":"CVE-2026-48814","to":"CVE-2026-54051","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:network-ai","fromFixed":"5.7.2","toFixed":"5.9.1","daysApart":33}]}},{"cve":"CVE-2026-54051","published":"2026-07-20","fixed":"5.9.1","kev":false}],"package":"npm:network-ai"}}