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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.04% (11th 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 ID SNYK-GOLANG-GITHUBCOMMUDLERLOCALAI-7897509
  • published 5 Sep 2024
  • disclosed 1 Apr 2024
  • credit pinkdraconian

How to fix?

Upgrade github.com/mudler/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 Scores

version 3.1
Expand this section

Snyk

Recommended
6.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    None
  • Availability (A)
    High