CVE-2024-9900
MEDIUM 6.1CVSS 3.1LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality
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.
- Published
- 20 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-115CWE-79
- Also known as
- GHSA-w6hh-w36c-vxmwGO-2025-3542
- Sources
- NVDJSONOSV GHSA-w6hh-w36c-vxmwJSONOSV GO-2025-3542JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 5.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.4 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mudler | localaicpe:2.3:a:mudler:localai:2.21.1:*:*:*:*:*:*:* |
= 2.21.1 | |
| OSV | Go | github.com/mudler/LocalAI | < 2.22.0 | 2.22.0 |
| OSV | Go | github.com/mudler/LocalAI | all versions |
References
- https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515 · Patch, WEB
- https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-9900 · ADVISORY
- https://github.com/mudler/LocalAI · PACKAGE
- https://github.com/advisories/GHSA-w6hh-w36c-vxmw · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Mar 2025)