LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs
What to do
- Upgrade to a fixed version: github.com/mudler/LocalAI 1.40.1-0.20260703213242-2cbb3c96b34d.
- Redeploy and restart long-running processes so they load the fixed code.
Affected packages
github.com/mudler/LocalAI
- < 1.40.1-0.20260703213242-2cbb3c96b34d
- 1.40.1-0.20260703213242-2cbb3c96b34d
Check your project: go list -m all | grep github.com/mudler/LocalAI