Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mudler/LocalAI
  4. ›
  5. CVE-2026-59707

CVE-2026-59707: LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs

July 7, 2026 (updated October 2, 2026)

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.

References

  • github.com/advisories/GHSA-8c5q-hx4g-qq23
  • github.com/mudler/LocalAI/commit/f9b968e19d7cbc556d59dceb2e0e450b828a3fda
  • github.com/mudler/LocalAI/issues/10665
  • nvd.nist.gov/vuln/detail/CVE-2026-59707
  • www.vulncheck.com/advisories/localai-server-side-request-forgery-via-post-models-apply

Code Behaviors & Features

Detect and mitigate CVE-2026-59707 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.40.1-0.20260703213242-2cbb3c96b34d

Fixed versions

  • 1.40.1-0.20260703213242-2cbb3c96b34d

Solution

Upgrade to version 1.40.1-0.20260703213242-2cbb3c96b34d or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

go/github.com/mudler/LocalAI/CVE-2026-59707.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 15 Oct 2026 00:16:45 +0000.