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

CVE-2024-9900: LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality

March 20, 2025 (updated March 21, 2025)

mudler/localai version v2.21.1 contains a Cross-Site Scripting (XSS) vulnerability in its search functionality. The vulnerability arises due to improper sanitization of user input, allowing the injection and execution of arbitrary JavaScript code. This can lead to the execution of malicious scripts in the context of the victim’s browser, potentially compromising user sessions, stealing session cookies, redirecting users to malicious websites, or manipulating the DOM.

References

  • github.com/advisories/GHSA-w6hh-w36c-vxmw
  • github.com/mudler/LocalAI
  • github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515
  • huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68
  • nvd.nist.gov/vuln/detail/CVE-2024-9900

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.22.0

Fixed versions

  • 2.22.0

Solution

Upgrade to version 2.22.0 or above.

Impact 5.4 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-115: Misinterpretation of Input

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:07 +0000.