Browse / AI Framework and Platform Flaws / CVE-2024-9900
LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Cross-site scripting
- Affected
- github.com/mudler/LocalAI (Go)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
Search input is not properly sanitised before being rendered, letting injected JavaScript run in a victim's browser. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9900
- https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515
- https://github.com/mudler/LocalAI
- https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68
Source: GitHub Advisory Database, used under CC BY 4.0.