Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/mudler/LocalAI
- https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fd
- https://github.com/mudler/LocalAI/issues/10665
- https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-pos
- https://github.com/mudler/LocalAI/issues/10665
FAQ
What is CVE-2026-59707?
CVE-2026-59707 is a vulnerability with a CVSS score of 8.6 (HIGH). 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...
How severe is CVE-2026-59707?
CVE-2026-59707 has been rated HIGH with a CVSS base score of 8.6/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-59707?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.