Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/mudler/LocalAI
  4. ›
  5. CVE-2024-48057

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

November 5, 2024 (updated March 20, 2025)

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.

References

  • gist.github.com/AfterSnows/1bd7ee5a3a42dbb5f5ff67f7f9c8ccec
  • github.com/advisories/GHSA-ghx4-cgxw-7h9p
  • github.com/mudler/LocalAI
  • github.com/mudler/LocalAI/blob/master/core/http/views/index.html
  • github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515
  • nvd.nist.gov/vuln/detail/CVE-2024-48057
  • rumbling-slice-eb0.notion.site/LocalAI-deleted-model-with-storage-XSS-CSRF-vulnerability-in-mudler-localai-101e3cda9e8c80e0ac12fe418d5dd982?pvs=4

Code Behaviors & Features

Detect and mitigate CVE-2024-48057 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 2.20.1

Solution

Unfortunately, there is no solution available yet.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/mudler/LocalAI/CVE-2024-48057.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:39 +0000.