SSRF in Localai
CVE-2026-59707
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.
Vulnerability class: SSRF (Server-Side Request Forgery)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.005 (39.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 39th percentile — 39.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.005 · change: 0.000
Affected products
- Localai — versions 0
Weakness classification (CWE)
References
- GitHub Issue (issue-tracking)
- Product (product)
- Patch Commit (patch)
- www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-model… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-59707?
- CVE-2026-59707 is a high-severity vulnerability in Localai, classified under Server-Side Request Forgery (SSRF). CVSS score: 8.6/10. Published 2026-07-07.
- How severe is CVE-2026-59707?
- High severity. CVSS v3 base score is 8.6 out of 10.