CVE-2024-9900: LocalAI XSS Vulnerability in Search Functionality

github.com/mudler/LocalAI Updated 02 Oct 2025

Summary

25/03/2025
No i
Moderate
5.4

CVE-2024-9900: LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality in github.com/mudler/LocalAI. Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

LocalAI is an open-source project hosted on GitHub, designed to facilitate AI model deployment and management. It provides a user-friendly interface for searching and interacting with various AI models. However, its search functionality has been found to be vulnerable to Cross-Site Scripting (XSS) attacks, which could allow malicious users to inject scripts into web pages viewed by other users.

Vulnerability Detail

The LocalAI Cross-Site Scripting (XSS) vulnerability arises from improper handling of user input in its search functionality. This flaw allows attackers to inject malicious scripts that can execute in the context of other users' browsers, potentially leading to data theft, session hijacking, or other malicious actions. The vulnerability affects all versions of LocalAI prior to v2.22.0, making it critical for users to address this issue promptly.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can sanitize user inputs in the search functionality to prevent script injection. Implementing input validation and encoding output can help mitigate the risk until the package is updated.

Conclusion

The LocalAI package has a critical Cross-Site Scripting (XSS) vulnerability in its search functionality, affecting all versions prior to v2.22.0. Users are strongly advised to update to the latest version to mitigate potential security risks. Temporary workarounds can be implemented, but updating is the best long-term solution.

See every vulnerability recorded for github.com/mudler/LocalAI →

Share this vulnerability

FAQ

XSS is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users, potentially compromising their data and security.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The risks include data theft, session hijacking, and unauthorized actions performed on behalf of users, which can lead to severe security breaches.

Yes, you can implement input validation and output encoding to sanitize user inputs in the search functionality as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/mudler/LocalAI.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback