Cross-Site Request Forgery (CSRF) Affecting github.com/go-skynet/localai package, versions <2.17.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.31% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOSKYNETLOCALAI-6596006
  • published11 Apr 2024
  • disclosed1 Apr 2024
  • creditpinkdraconian

Introduced: 1 Apr 2024

CVE-2024-3135  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade github.com/go-skynet/LocalAI to version 2.17.0 or higher.

Overview

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) due to the web server lacking CSRF tokens. An attacker can host malicious JavaScript on a host that, when visited by a user, could allow the attacker to fill disk space to deny service or abuse credits.

CVSS Base Scores

version 3.1