Cross-site Scripting Affecting label-studio package, versions [,1.9.2.post0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    2.16% (90th 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-PYTHON-LABELSTUDIO-6186447
  • published 24 Jan 2024
  • disclosed 23 Jan 2024
  • credit alex-elttam

How to fix?

Upgrade label-studio to version 1.9.2.post0 or higher.

Overview

label-studio is a Label Studio annotation tool

Affected versions of this package are vulnerable to Cross-site Scripting via the avatar image upload functionality. An attacker can execute arbitrary JavaScript and perform malicious actions if they upload a crafted image file that gets rendered as an HTML file on the website.

Note: If an attacker can craft a JavaScript payload that adds a new Django Super Administrator user if a Django administrator visits the image. This could have subsequent system impact

Workarounds

  1. Validate the file extension on the server side, not in client-side code.

  2. Consider saving file content in the database rather than on the filesystem to mitigate against other file related vulnerabilities.

  3. Avoid trusting user controlled inputs.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    Low
Expand this section

NVD

5.4 medium