CVE-2024-9900
mediumpriority · track · 24EPSS 0.005 · 45 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-w6hh-w36c-vxmwLocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality2025-03-20ghsa · osvUS
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.
- GO-2025-3542LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality in github.com/mudler/LocalAI2025-03-25vendor · osvUS
LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality in github.com/mudler/LocalAI. NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions. (If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.) The additional affected modules and versions are: github.com/mudler/LocalAI before v2.22.0.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515cnnvd
- https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68cnnvd
- https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515enisa_euvd
- https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68enisa_euvd
- https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515Patchnvd
- https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan