# CVE-2024-9900: Cross-Site Scripting (XSS) in mudler/localai

- Severity: Medium 5.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:14.108Z
- Modified: 2026-06-17T08:25:28.040Z
- Also known as: GHSA-w6hh-w36c-vxmw, GO-2025-3542
- Weaknesses: CWE-79, CWE-115
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified before 2.22.0
- github.com/mudler/LocalAI (Go): before 2.22.0; all versions
- mudler localai: 2.21.1

## Every score

- @huntr_ai: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.0 5.4 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68> (exploit, third-party-advisory, web)
- <https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515> (patch, 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)

## Sources

- CVE List: [CVE-2024-9900](https://www.cve.org/CVERecord?id=CVE-2024-9900), CVE Terms of Use, modified 2025-04-04
- GitHub Advisory Database: [GHSA-w6hh-w36c-vxmw](https://github.com/advisories/GHSA-w6hh-w36c-vxmw), CC-BY-4.0, modified 2025-03-25
- Go Vulnerability Database: [GO-2025-3542](https://pkg.go.dev/vuln/GO-2025-3542), CC-BY-4.0, modified 2025-03-25
- NVD: [CVE-2024-9900](https://nvd.nist.gov/vuln/detail/CVE-2024-9900), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-9900 · Whole record: https://cve.day/CVE-2024-9900.json · Rebuilt by cve.day 2026-11-25T22:58:52.416Z
