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)
EPSS: 0.004 (29.4th percentile) — read the EPSS interpretation.
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.
Affected products
- Localai — versions 0
Weakness classification (CWE)
References
- GitHub Issue (issue-tracking)
- Product (product)
- Patch Commit (patch)
- disclosure@vulncheck.com (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.