Skip to content
OpenAdvisories
Medium · 5.4 CVE-2024-9900 EUVD-2025-6839GHSA-w6hh-w36c-vxmwGO-2025-3542

Cross-Site Scripting (XSS) in mudler/localai

Published Mar 20, 2025 · Updated Apr 4, 2025 · Assigned by @huntr_ai

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 products

VendorProductAffectedFixed
mudler mudler/localai unspecified – < 2.22.0 2.22.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250327T184518-1.1 openSUSE-SU-2025:14937-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/mudler/LocalAI < 2.22.0 2.22.0 GHSA-w6hh-w36c-vxmw
Go github.com/mudler/LocalAI all versions — GO-2025-3542

Advisories 1

References