Skip to content
OpenAdvisories
High · 8.6 Scanner template CVE-2026-59707 EUVD-2026-42097GHSA-8c5q-hx4g-qq23GO-2026-6645

LocalAI - Server-Side Request Forgery via POST /models/apply

Published Jul 7, 2026 · Updated Sep 24, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
LocalAI LocalAI ≤ v4.3.1 —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/mudler/LocalAI < 1.40.1-0.20260703213242-2cbb3c96b34d 1.40.1-0.20260703213242-2cbb3c96b34d GHSA-8c5q-hx4g-qq23

References