{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-48057","id":"CVE-2024-48057","title":"LocalAI Cross-site Scripting vulnerability","description":"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.","descriptionLong":"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":"2024-11-04T00:00:00.000Z","updated":"2026-10-28T02:30:53.875417989Z","reserved":"2024-10-08T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"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":"medium","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/mudler/LocalAI","purl":"pkg:golang/github.com/mudler/LocalAI","ranges":["<=2.20.1","all versions"],"fixed":[],"advisory":"GHSA-ghx4-cgxw-7h9p"}],"cwes":["CWE-79","CWE-352"],"aliases":["GHSA-ghx4-cgxw-7h9p","GO-2024-3253"],"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"]},{"url":"https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48057.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48057","tags":["advisory"]},{"url":"https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","tags":["web"]},{"url":"https://github.com/advisories/GHSA-ghx4-cgxw-7h9p","tags":["advisory"]},{"url":"https://github.com/mudler/LocalAI","tags":["package"]},{"url":"https://github.com/mudler/LocalAI/blob/master/core/http/views/index.html#L75","tags":["web"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00208,"epssPercentile":0.11089,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-48057","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48057","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-48057","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ghx4-cgxw-7h9p","ok":true,"note":"GHSA-ghx4-cgxw-7h9p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-48057","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}