{"id":"CVE-2026-120313","kind":"vulnerability","aliases":["CVE-2026-120313"],"related":[],"title":"Network-AI: path traversal lets attackers read and write files outside sandbox","description":"Network-AI before 5.15.5 contains a path traversal vulnerability in InputSanitizer.sanitizePath() that allows attackers to escape the base directory using sibling-directory paths. Attackers can supply paths whose directory name shares a string prefix with the base, bypassing the unanchored startsWith check to read, list, or write files outside the sandbox.","summary":"Network-AI before 5.15.5 has a flawed path check in InputSanitizer.sanitizePath() that uses an unanchored startsWith test. An attacker can supply a sibling directory whose name shares the base directory's prefix to read, list, or write files outside the intended sandbox.","severity":"high","cvss":8.7,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ai-agents","file-access","network-ai","node","package"],"not_affected_if":["fixed-version","no-untrusted-paths"],"how_to_check":"- Check the installed Network-AI version, for example with `npm ls network-ai`, and see whether it is below `5.15.5`.\n- Search the code for calls to `sanitizePath` or `InputSanitizer` to see whether user-supplied paths reach them.","fix":"- Network-AI: upgrade to `5.15.5` or later.","status":"open","published_at":"2026-11-02T03:17:29+00:00","first_seen_at":"2026-11-02T03:31:21+00:00","triaged_at":"2026-11-02T03:31:46+00:00","updated_at":"2026-11-02T03:31:46+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-02T03:31:46Z","model":"claude-haiku-5-5","output":{"fix":"- Network-AI: upgrade to `5.15.5` or later.","reach":"unknown","title":"Network-AI: path traversal lets attackers read and write files outside sandbox","impact":"medium","summary":"Network-AI before 5.15.5 has a flawed path check in InputSanitizer.sanitizePath() that uses an unanchored startsWith test. An attacker can supply a sibling directory whose name shares the base directory's prefix to read, list, or write files outside the intended sandbox.","audience":"developers","category":"package","nicknames":[],"who_cares":["network-ai","node","ai-agents","file-access"],"confidence":0.6,"fix_status":"available","needs_auth":"unknown","worst_case":"Attacker reads, lists or writes files outside the sandbox directory","analyst_note":"Confirm the affected version range and whether the attack needs authentication or only reaches the sanitizer through an agent's tool inputs, using the NVD entry and the project's release notes.","how_to_check":"- Check the installed Network-AI version, for example with `npm ls network-ai`, and see whether it is below `5.15.5`.\n- Search the code for calls to `sanitizePath` or `InputSanitizer` to see whether user-supplied paths reach them.","plain_action":"","needs_analyst":true,"not_affected_if":["fixed-version","no-untrusted-paths"],"who_is_affected":"Teams that run Network-AI below 5.15.5 and pass user-influenced file paths through InputSanitizer.sanitizePath(), particularly in agent or tool setups that read or write files. Projects that pin a fixed version or never expose file path inputs to untrusted users are less exposed. Sources do not say which exact deployment patterns are most at risk.","user_interaction":"unknown","needs_special_setup":"unknown","severity_if_unknown":"unknown"},"cost_usd":0.000736,"input_tokens":4151,"output_tokens":641,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-120313':16A,19A '-2026':15A,18A '5.15.5':35B,78C 'access':25B 'agent':22B 'ai':3A,21B,28B,33B,76C 'ai-ag':20B 'allow':87C 'attack':7A,50B,88C,99C 'base':60B,92C,112C 'bypass':113C 'check':40B,117C 'contain':79C 'cve':14A,17A 'directori':55B,61B,93C,97C,104C 'escap':90C 'file':11A,24B,69B,123C 'file-access':23B 'flaw':38B 'inputsanitizer.sanitizepath':42B,85C 'intend':72B 'let':6A 'list':66B,120C 'name':57B,105C 'network':2A,27B,32B,75C 'network-ai':1A,26B,31B,74C 'node':29B 'outsid':12A,70B,124C 'packag':30B 'path':4A,39B,81C,98C,102C 'prefix':63B,109C 'read':8A,65B,119C 'sandbox':13A,73B,126C 'share':58B,106C 'sibl':54B,96C 'sibling-directori':95C 'startswith':47B,116C 'string':108C 'suppli':52B,101C 'test':48B 'travers':5A,82C 'unanchor':46B,115C 'use':44B,94C 'vulner':83C 'whose':56B,103C 'write':10A,68B,122C","nicknames":[],"mitigations":[],"who_affected":"Teams that run Network-AI below 5.15.5 and pass user-influenced file paths through InputSanitizer.sanitizePath(), particularly in agent or tool setups that read or write files. Projects that pin a fixed version or never expose file path inputs to untrusted users are less exposed. Sources do not say which exact deployment patterns are most at risk.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["aiagents","fileaccess","high","networkai","node","package"],"first_public_at":"2026-11-02T03:17:29+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-120313","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120313","severity":null,"published_at":"2026-11-02T03:17:29+00:00","modified_at":"2026-11-02T03:17:29+00:00","first_seen_at":"2026-11-02T03:31:21+00:00","fetched_at":"2026-11-02T03:31:21+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}