{"id":"CVE-2024-48057","details":"localai \u003c=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.","aliases":["GHSA-ghx4-cgxw-7h9p","GO-2024-3253"],"modified":"2026-03-09T23:50:53.512709Z","published":"2024-11-04T23:15:04.393Z","related":["SUSE-SU-2024:4042-1","openSUSE-SU-2024:14470-1"],"references":[{"type":"ADVISORY","url":"https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec"},{"type":"EVIDENCE","url":"https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mudler/localai","events":[{"introduced":"0"},{"last_affected":"a9c521eb41dc2dd63769e5362f05d9ab5d8bec50"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"2.20.1"}]}}],"versions":["v.1.24.0","v0.1","v0.10.0","v0.2","v0.3","v0.4","v0.5","v0.6","v0.7","v0.8","v0.8.1","v0.9","v0.9.1","v0.9.2","v1.0","v1.1.0","v1.10.0","v1.10.1","v1.11.0","v1.11.1","v1.12.0","v1.13.0","v1.14.0","v1.14.1","v1.14.2","v1.15.0","v1.16.0","v1.17.0","v1.17.1","v1.18.0","v1.19.0","v1.19.1","v1.19.2","v1.2.0","v1.20.0","v1.20.1","v1.21.0","v1.22.0","v1.23.0","v1.23.1","v1.23.2","v1.24.1","v1.25.0","v1.3.0","v1.3.1","v1.3.2","v1.30.0","v1.4.0","v1.40.0","v1.5.0","v1.5.1","v1.6.0","v1.6.1","v1.6.2","v1.6.3","v1.7.0","v1.7.1","v1.8.0","v1.8.1","v1.9.0","v1.9.1","v2.0.0","v2.0.0_beta","v2.1.0","v2.10.0","v2.10.1","v2.11.0","v2.12.0","v2.12.1","v2.12.3","v2.13.0","v2.14.0","v2.15.0","v2.16.0","v2.17.0","v2.17.1","v2.18.0","v2.18.1","v2.19.0","v2.19.1","v2.19.2","v2.19.3","v2.19.4","v2.2.0","v2.20.0","v2.20.1","v2.3.0","v2.3.1","v2.4.0","v2.4.1","v2.5.0","v2.5.1","v2.6.0","v2.6.1","v2.7.0","v2.8.0","v2.8.1","v2.8.2","v2.9.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-48057.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}