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.
https://huntr.com/bounties/3f170c58-42ee-422d-ab6f-32c7aa05b974