Network-AI: AgentRuntime sandbox path-prefix checks allow file access outside the configured base directory
Published Jul 20, 2026
6.5
MEDIUMCVSS 3.1
EPSS 0.19%
Description
Network-AI is a TypeScript/Node.js multi-agent orchestrator. Prior to version 5.12.2, `AgentRuntime` promises scoped file access under a configured sandbox `basePath`, but its path containment checks use raw string prefix tests. A sandbox base such as `/tmp/network-ai-sandbox` also matches a sibling path such as `/tmp/network-ai-sandbox_evil/secret.txt`. An agent/user that can call `AgentRuntime.readFile()` or `AgentRuntime.listDir()` can read or list files outside the intended sandbox when the target path is in a sibling directory sharing the base path prefix. This breaks the documented sandbox boundary. The issue is fixed in v5.12.2. `SandboxPolicy.resolvePath()` and `isPathAllowed()` now use separator-anchored prefix checks (`resolved === base || resolved.startsWith(base + path.sep)`) for both the allow-list and block-list. A sibling directory that merely shares a name prefix (e.g. `/srv/app-evil` vs base `/srv/app`) is no longer treated as in-scope.
Affected products
-
- Version < 5.12.2StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Jovancoding | Network-AI | n/a |
|
- < 5.12.2
No data.
No Red Hat product state for this CVE.
network-ai
npm
Introduced 0 Fixed 5.12.2
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | network-ai | 0 | 5.12.2 |
Remediation
No remediation recorded yet.
References (4)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-46018 Advisory
- https://github.com/Jovancoding/Network-AI/commit/a59c13a1f0ce0e8a0779a90343eef92fac5ab4c3 x_refsource_MISCPatch
- https://github.com/Jovancoding/Network-AI/releases/tag/v5.12.2 x_refsource_MISCPatchRelease Notes
- https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-jvcm-f35g-w78p exploitx_refsource_CONFIRMPatchVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-46018 | Advisory | |
| https://github.com/Jovancoding/Network-AI/commit/a59c13a1f0ce0e8a0779a90343eef92fac5ab4c3 | x_refsource_MISCPatch | |
| https://github.com/Jovancoding/Network-AI/releases/tag/v5.12.2 | x_refsource_MISCPatchRelease Notes | |
| https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-jvcm-f35g-w78p | exploitx_refsource_CONFIRMPatchVendor Advisory |
Change history (0)
No recorded changes yet.