{"id":"CVE-2026-58481","revision":"cf7e85795b3c418c8ebd5e03a7b75812","records":[{"revision":"cf7e85795b3c418c8ebd5e03a7b75812","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-58481","aliases":[],"title":"Network-AI: AgentRuntime sandbox path-prefix checks allow file access outside the configured base directory","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.","state":0,"publishedAt":"2026-07-20T16:30:15.22+00:00","modifiedAt":"2026-07-20T17:42:43.376+00:00","affected":[{"ecosystem":"Vendor product","name":"Network-AI","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Jovancoding\",\n                    \"product\": \"Network-AI\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 5.12.2\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-jvcm-f35g-w78p","https://github.com/Jovancoding/Network-AI/commit/a59c13a1f0ce0e8a0779a90343eef92fac5ab4c3","https://github.com/Jovancoding/Network-AI/releases/tag/v5.12.2"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58481","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-58481","identifiers":["CVE-2026-58481"]},"retained":false,"historicalAffected":[]}],"coverage":[]}