INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-9900

LocalAI Cross-Site Scripting (XSS) vulnerability in its search functionality

CVE-2024-9900 ยท 2025-03-20 moderate

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

Source: GitHub Advisory Database, used under CC BY 4.0.