CVE-2026-59707: Vulnerability in github.com/mudler/LocalAI
Critical. 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...
Go, CWE-918
- Exploitation
- None confirmed
- Severity
- 8.6 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-8c5q-hx4g-qq23
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Weakness
- CWE-918
- Published
- 7 Jul 2026
- Last change
- 25 Oct 2026
- Ecosystem
- Go
Affected packages
Vulnerable version ranges and fixed releases
- github.com/mudler/LocalAI Go, Affected before 1.40.1-0.20260703213242-2cbb3c96b34d. Fixed in 1.40.1-0.20260703213242-2cbb3c96b34d
Advisories
Vendor and security advisories
- github.com/mudler/LocalAI/issues/10665
- vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply
- github.com/mudler/LocalAI
Patches and fixes
Updates, commits and release notes