# CVE-2026-58481: Network-AI: AgentRuntime sandbox path-prefix checks allow file access outside the configured base directory

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T21:42:29.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-jvcm-f35g-w78p
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Jovancoding Network-AI: < 5.12.2
- network-ai (npm): before 5.12.2
- network-ai network-ai: before 5.12.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/Jovancoding/Network-AI/security/advisories/GHSA-jvcm-f35g-w78p> (exploit, patch, vendor-advisory, web)
- <https://github.com/Jovancoding/Network-AI/commit/a59c13a1f0ce0e8a0779a90343eef92fac5ab4c3> (patch, web)
- <https://github.com/Jovancoding/Network-AI/releases/tag/v5.12.2> (patch, release-notes, web)
- <https://github.com/Jovancoding/Network-AI> (package)

## Sources

- CVE List: [CVE-2026-58481](https://www.cve.org/CVERecord?id=CVE-2026-58481), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-jvcm-f35g-w78p](https://github.com/advisories/GHSA-jvcm-f35g-w78p), CC-BY-4.0, modified 2026-07-21
- NVD: [CVE-2026-58481](https://nvd.nist.gov/vuln/detail/CVE-2026-58481), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-58481 · Whole record: https://cve.day/CVE-2026-58481.json · Rebuilt by cve.day 2026-11-25T22:59:29.257Z
