Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

CVE-2024-9900Cross-Site Scripting (XSS) in mudler/localai

Medium 5.4

In plain English

A medium-severity cross-site scripting in mudler/localai from mudler. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)5.4Medium
Exploit odds (30 days)0.5%top 54.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/mudler/LocalAI2.22.0GHSA-w6hh-w36c-vxmw
Gogithub.com/mudler/LocalAIno fix listedGO-2025-3542

Affected products (as reported)

VendorProductVersions
mudler mudler/localai unspecified – before 2.22.0

Weakness: CWE-79 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

References