A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. The API endpoint /api/file does not properly sanitize the path parameter, allowing an attacker to read arbitrary files on the server.
/api/file
path
"https://github.com/pypa/advisory-database/blob/main/vulns/agentscope/PYSEC-2025-80.yaml"