Unrated severityNVD Advisory· Published Jul 7, 2026· Updated Jul 20, 2026
LocalAI - Server-Side Request Forgery via POST /models/apply
CVE-2026-59707
Description
LocalAI contains an unauthenticated server-side request forgery vulnerability in the POST /models/apply endpoint that allows attackers to fetch arbitrary internal URLs. The endpoint passes unsanitized gallery URL fields directly to gallery.GetGalleryConfigFromURLWithContext without proper validation, enabling attackers to force the server to issue HTTP GET requests to private and loopback ranges with partial response content leaked through error messages.
Affected products
2Patches
Vulnerability mechanics
References
3- github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fdamitrepatch
- www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-applymitrethird-party-advisory
- github.com/mudler/LocalAI/issues/10665mitreissue-tracking
News mentions
0No linked articles in our index yet.