Description
localai <=2.20.1 is vulnerable to Cross Site Scripting (XSS). When calling the delete model API and passing inappropriate parameters, it can cause a one-time storage XSS, which will trigger the payload when a user accesses the homepage.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | govulncheck-vulndb | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
| SLES 15 SP5 | govulncheck-vulndb | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20241106T172143-1.1 | openSUSE-SU-2024:14470-1 |
| openSUSE Leap 15.6 | govulncheck-vulndb | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
| openSUSE Leap 15.5 | govulncheck-vulndb | 0.0.20241112T145010-150000.1.17.1 | SUSE-SU-2024:4042-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/mudler/LocalAI | <= 2.20.1 | — | GHSA-ghx4-cgxw-7h9p |
| Go | github.com/mudler/LocalAI | all versions | — | GO-2024-3253 |
Advisories 2
- SUSE-SU-2024:4042-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14470-1 govulncheck-vulndb-0.0.20241106T172143-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026