{"id":"CVE-2024-9900","published":"2025-03-20T10:09:14Z","modified":"2025-04-04T08:45:38Z","title":"Cross-Site Scripting (XSS) in mudler/localai","vendor":"mudler","product":"mudler/localai","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00536,"percentile":0.46136,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://huntr.com/bounties/b39cd230-db66-471b-89b9-24afaa078e68","tags":[]},{"url":"https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515","tags":[]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":9.23},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"mudler","affectedVersions":[{"vendor":"mudler","product":"mudler/localai","versions":[">= unspecified, < 2.22.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-20T13:49:07.441013Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/mudler/LocalAI","vulnerableRanges":["<2.22.0","all versions"],"patched":["2.22.0"],"from":["GHSA-w6hh-w36c-vxmw","GO-2025-3542"],"provenance":"source"}],"summary":{"text":"The flaw is a Cross-Site Scripting (XSS) vulnerability in the search functionality of mudler/localai, caused by improper sanitisation of user input that allows arbitrary JavaScript to be injected and executed. An attacker can exploit it without authentication over the network, but only if a user interacts with the crafted content, and the result is execution of malicious scripts in the victim's browser, which can compromise sessions, steal cookies, redirect users, or manipulate the DOM.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:18Z"},"euvd":{"id":"EUVD-2025-6839","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mudler-localai-cve-2024-5616","parents":[{"from":"CVE-2024-6868","to":"CVE-2024-9900","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/http/elements/gallery.go","core/http/routes/ui.go"],"commits":["https://github.com/mudler/localai/commit/a181dd0ebc5d3092fc50f61674d552604fe8ef9c","https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515"],"basis":"rarely changed file"}]},{"from":"CVE-2024-7010","to":"CVE-2024-9900","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/http/middleware/auth.go","core/http/routes/ui.go"],"commits":["https://github.com/mudler/localai/commit/db1159b6511e8fa09e594f9db0fec6ab4e142468","https://github.com/mudler/localai/commit/a1634b219a4e52813e70ff07e6376a01449c4515"],"basis":"shared function","functions":["RegisterUIRoutes"]}]}]}}