CVE-2024-9900
Cross-Site Scripting (XSS) in mudler/localai
Reported by @huntr_ai · Published March 20, 2025
github.com/mudler/LocalAI is fixed in 2.22.0 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/mudler/LocalAI | Go Modules | 2.22.0 |
| mudler/localai | mudler | 2.22.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| mudler | mudler/localai | unspecified |
| mudler | mudler/localai | * |
| github.com | mudler/LocalAI | 0 |
Timeline
- Mar 20, 2025 CVE Published
- Mar 20, 2025 EPSS Score (30 in total, the first dated here)
- Mar 21, 2025 Coalition ESS Score (10 in total, the first dated here)
- Apr 4, 2025 CVE Updated
- Apr 4, 2025 PoC Published
- Mar 11, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-9900
vulnetix vdb fixes CVE-2024-9900
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-9900/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart