CVE-2026-59707: LocalAI - Server-Side Request Forgery via POST /models/apply

Published Jul 7, 2026
·
Updated

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 Software

1 affected component
LocalAI LocalAI

Event History

Jul 7, 2026
CVE Published
via MITRE·08:37 PM
Data Sourced
via MITRE·08:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-59707?

CVE-2026-59707 has a critical severity rating of 9.2.

2

How does CVE-2026-59707 affect LocalAI?

CVE-2026-59707 allows attackers to perform server-side request forgery through the POST /models/apply endpoint.

3

What can attackers do with CVE-2026-59707?

Attackers can use CVE-2026-59707 to fetch arbitrary internal URLs without authentication.

4

How do I fix CVE-2026-59707?

To fix CVE-2026-59707, ensure proper validation and sanitization of URL fields before processing them.

5

Is CVE-2026-59707 an authenticated or unauthenticated vulnerability?

CVE-2026-59707 is an unauthenticated vulnerability, meaning it can be exploited without needing valid credentials.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203