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

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-11-04T00:00:00.000Z
- Modified: 2026-06-17T07:58:10.033Z
- Also known as: GHSA-ghx4-cgxw-7h9p, GO-2024-3253
- Weaknesses: CWE-79, CWE-352
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mudler localai: up to 2.20.1
- github.com/mudler/LocalAI (Go): up to 2.20.1; all versions

## Every score

- CISA-ADP: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Low `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4> (exploit, third-party-advisory, web)
- <https://gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-48057> (advisory)
- <https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515> (web)
- <https://github.com/advisories/GHSA-ghx4-cgxw-7h9p> (advisory)
- <https://github.com/mudler/LocalAI> (package)
- <https://github.com/mudler/LocalAI/blob/master/core/http/views/index.html#L75> (web)

## Sources

- CVE List: [CVE-2024-48057](https://www.cve.org/CVERecord?id=CVE-2024-48057), CVE Terms of Use, modified 2024-11-05
- GitHub Advisory Database: [GHSA-ghx4-cgxw-7h9p](https://github.com/advisories/GHSA-ghx4-cgxw-7h9p), CC-BY-4.0, modified 2025-03-20
- Go Vulnerability Database: [GO-2024-3253](https://pkg.go.dev/vuln/GO-2024-3253), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-48057](https://nvd.nist.gov/vuln/detail/CVE-2024-48057), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-48057 · Whole record: https://cve.day/CVE-2024-48057.json · Rebuilt by cve.day 2026-11-25T22:58:47.728Z
