Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · LocalAI

CVE-2024-48057: LocalAI Cross-site Scripting vulnerability

lowCVSS 4.0 2.1 · 3.1 6.1GHSA-ghx4-cgxw-7h9p

localai <=2.20.1 is vulnerable to Cross Site Scripting (XSS). When calling the delete model API and passing inappropriate parameters, it can cause a one-time storage XSS, which will trigger the payload when a user accesses the homepage.

Published Nov 5, 2024 · Updated Mar 20, 2025

Affected packages

github.com/mudler/LocalAI

Ecosystem
Go
Affected
<= 2.20.1
Fixed in
No patched version yet
Check
go list -m github.com/mudler/LocalAI

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

localai <=2.20.1 is vulnerable to Cross Site Scripting (XSS). When calling the delete model API and passing inappropriate parameters, it can cause a one-time storage XSS, which will trigger the payload when a user accesses the homepage.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More LocalAI vulnerabilities

All LocalAI entries