CriticalVulnerability
GHSA-8c5q-hx4g-qq23: LocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLs
- Identifiers
- CVE-2026-59707GHSA-8c5q-hx4g-qq23
- Published
- Record updated
- Affected
- github.com/mudler/LocalAI < 1.40.1-0.20260703213242-2cbb3c96b34d
- Fixed in
- 1.40.1-0.20260703213242-2cbb3c96b34d
- released July 3, 2026, 4 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
LocalAI's unauthenticated POST /models/apply endpoint passes unsanitized gallery URL fields directly to gallery.GetGalleryConfigFromURLWithContext without proper validation. An attacker can force the server to send HTTP GET requests to private and loopback address ranges, with partial response content leaked through error messages.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- github.com/mudler/LocalAIGoLLM dependency since 2023-04-21
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online