Summary
CVE-2026-85685 is a path traversal vulnerability (CWE-22) in AgentScope’s LocalWorkspace.add_skill function that allows an attacker to copy arbitrary directories from the host filesystem into an agent’s workspace. Because the copied files are then exposed through the workspace’s skill listing, a remote, unauthenticated attacker can use this flaw to disclose sensitive server files. The issue affects AgentScope through version 2.0.7.post1 and is rated High severity (8.7).
Technical details
- Root cause:
LocalWorkspace.add_skill()confines the destination path to the skills directory but does not validate that the source path (skill_path) supplied by the caller resides inside any allowed root. - Trigger condition: An attacker sends a request (e.g., a POST to the workspace skill endpoint) supplying an arbitrary
skill_pathpointing to any directory on the server that contains aSKILL.mdfile; AgentScope copies that directory’s contents into the agent’s skills folder. - Attack vector: Network-reachable AgentScope workspace/HTTP API; the API’s authentication is described as a placeholder that reads an
X-User-IDheader, allowing a caller to assert any identity, effectively enabling unauthenticated exploitation. - Impact: Disclosure of files copied from outside the intended workspace root — potentially configuration files, credentials, or other tenants’ workspace data — once retrieved via the workspace’s skill listing. No integrity or availability impact has been reported.
Affected software
- AgentScope (PyPI package
agentscope), versions up to and including 2.0.7.post1
Severity
- CVSS v3.1: 7.5 —
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS v4.0: 8.7 —
AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Mitigation and recommended actions
- Immediate: No vendor-confirmed patched release addressing this CVE by version number has been identified at time of writing; check the AgentScope repository and release notes for an update to
LocalWorkspace.add_skill(later releases have made related changes to skill-directory handling) and upgrade as soon as a fix is confirmed. - If no patch is available: Restrict network access to the AgentScope workspace/HTTP API to trusted hosts only, do not expose the workspace API directly to the internet, replace or front the placeholder
X-User-ID-based authentication with proper authentication/authorization, and validate/deny anyskill_pathvalues that resolve (via realpath) outside the intended skills root or contain traversal sequences.
How IONIX identifies potentially affected assets
IONIX matches the following signals against data already collected when it crawled the asset; identifying the technology sends no request beyond that crawl.
- Page title:
AgentScope Studio,AgentScope

