LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality
CVE-2024-9900 · GHSA-w6hh-w36c-vxmw · published 2025-03-20 · updated 2025-04-04
- Severity
- Medium
- CVSS score
- 5.4
- Chance of exploitation (EPSS)
- 0.54%
- Fixed in
- 2.22.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade github.com/mudler/LocalAI to 2.22.0 or later.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| github.com/mudler/LocalAI | Go | < 2.22.0 | 2.22.0 |
- CriticalJupyter Server: Stored XSS in `NbconvertFileHandler` / `NbconvertPostHandler` via missing `sandbox` CSPjupyter-server
- CriticalMalicious website can execute commands on the local system through XSS in the OpenCode web UIopencode-ai
- CriticalFlowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panelflowise
- CriticalMLFlow Cross-site Scripting vulnerability leads to client-side Remote Code Executionmlflow
- CriticalCross-site Scripting in MLFlowmlflow
- HighPraisonAI: Prompt Injection Defense Bypassed for HIGH-Level Threatspraisonai
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- LowLocalAI Cross-site Scripting vulnerabilitygithub.com/mudler/LocalAI
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.