GHSA-w6hh-w36c-vxmw

Suggest an improvement
Source
https://github.com/advisories/GHSA-w6hh-w36c-vxmw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-w6hh-w36c-vxmw/GHSA-w6hh-w36c-vxmw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w6hh-w36c-vxmw
Aliases
Published
2025-03-20T12:32:51Z
Modified
2025-03-25T20:22:02.028631Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2025-03-20T10:15:50Z",
    "cwe_ids": [
        "CWE-115",
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-21T03:39:10Z"
}
References

Affected packages

Go / github.com/mudler/LocalAI

Package

Name
github.com/mudler/LocalAI
View open source insights on deps.dev
Purl
pkg:golang/github.com/mudler/LocalAI

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.22.0