Advisory

GHSA-w6hh-w36c-vxmw

Also known as: CVE-2024-9900, GO-2025-3542

Summary

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

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-03-20 12:32 UTC
Modified
2025-03-25 20:22 UTC

Affected packages and fixes

github.com/mudler/LocalAI

Go · All systems

Affected

  • introduced 0, fixed 2.22.0 (semver)

Fixed versions

2.22.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences