{"id":"CVE-2024-48057","aliases":["CVE-2024-48057","GHSA-ghx4-cgxw-7h9p","GO-2024-3253"],"related":[],"kind":"vulnerability","state":"published","title":"LocalAI Cross-site Scripting vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"LocalAI Cross-site Scripting vulnerability in github.com/mudler/LocalAI","format":"markdown","source":"go"},{"lang":"es","text":"localai &lt;=2.20.1 es vulnerable a ataques de cross site scripting (XSS). Al llamar a la API de eliminación de modelo y pasar parámetros inadecuados, puede provocar un ataque XSS de almacenamiento único, que activará el payload cuando un usuario acceda a la página de inicio.","source":"nvd"}],"published":"2024-11-04T00:00:00.000Z","modified":"2026-06-17T07:58:10.033Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P","rating":"LOW"}],"cwes":["CWE-79","CWE-352"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.20.1","status":"affected"}],"vendor":"mudler","product":"localai","cpe":"cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.20.1"}],"ecosystem":"Go","package":"github.com/mudler/LocalAI","purl":"pkg:golang/github.com/mudler/LocalAI","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/mudler/LocalAI","purl":"pkg:golang/github.com/mudler/LocalAI","source":"go"},{"ranges":[{"status":"affected","lastAffected":"2.20.1"}],"vendor":"mudler","product":"localai","cpe":"cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48057","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-ghx4-cgxw-7h9p","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/mudler/LocalAI/blob/master/core/http/views/index.html#L75","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-11-05T17:27:06.367Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-48057","url":"https://www.cve.org/CVERecord?id=CVE-2024-48057","licence":"CVE Terms of Use","modified":"2024-11-05T17:28:51.570Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ghx4-cgxw-7h9p","url":"https://github.com/advisories/GHSA-ghx4-cgxw-7h9p","licence":"CC-BY-4.0","modified":"2025-03-20T23:22:35.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3253","url":"https://pkg.go.dev/vuln/GO-2024-3253","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:00.109Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-48057","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48057","licence":"Public domain","modified":"2026-06-17T07:58:10.033Z"}],"updatedAt":"2026-11-25T22:58:47.728Z","epss":{"score":0.00235,"percentile":0.15415,"date":"2026-12-01T12:00:22.000Z"}}