6.1medium
LocalAI Cross-site Scripting vulnerability
- Severity
- 6.1medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-ghx4-cgxw-7h9pGO-2024-3253
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| mudler localai | up to 2.20.1 | CVE List, NVD |
| github.com/mudler/LocalAI (Go) | up to 2.20.1, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| CISA-ADP | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 6.1low CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | low CVSS:4.0 | 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 |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
LocalAI Cross-site Scripting vulnerability in github.com/mudler/LocalAI
NVD (es)
localai <=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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-48057 changed 2024-11-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-ghx4-cgxw-7h9p changed 2025-03-20 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3253 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-48057 changed 2026-06-17 | Public domain |