An unsafe deserialization issue exists in the `/set model` endpoint within `api.py`. Unauthenticated attackers can load arbitrary model checkpoints by setting the `gpt model path` or `sovits model path` variables to a crafted pickle file readable by the server. This triggers the `torch.load()` function with `weights only=False`, allowing the execution of arbitrary code with the privileges of the server process user.