CVE-2026-59707 — Vulnerability in github.com/mudler/LocalAI
LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.52%). Schedule for your next planned update.
Does your project use an affected github.com/mudler/LocalAI version?
Paste your go.sum to check it for CVE-2026-59707 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published July 7, 2026 (142 days ago).
- Last revised October 7, 2026 — 92 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/mudler/LocalAI@v1.40.1-0.20260703213242-2cbb3c96b34d
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/mudler/LocalAI Go · Affected: All versions | 1.40.1-0.20260703213242-2cbb3c96b34d |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-918Server-Side Request Forgery (SSRF)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-59707ADVISORY
- https://github.com/mudler/LocalAI/issues/10665WEB
- https://github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fdaWEB
- https://github.com/mudler/LocalAIPACKAGE
- https://www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-applyWEB
Frequently Asked Questions
- What is CVE-2026-59707?
- LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2026-59707?
- CVE-2026-59707 affects github.com/mudler/LocalAI. It has a 1.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-59707 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 74.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-104099CRITICAL
Fabio: Access-control bypass through unnormalized request paths
- CVE-2026-77369CRITICAL
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint