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. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
27% (97th 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 Learn

Learn about Cross-site Scripting vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LABELSTUDIO-6186447
  • published24 Jan 2024
  • disclosed23 Jan 2024
  • creditalex-elttam

Introduced: 23 Jan 2024

CVE-2023-47115  (opens in a new tab)
CWE-79  (opens in a new tab)

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