S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Oct 8, 2024

CVE-2023-47115 Scanner

CVE-2023-47115 Scanner - Cross-Site Scripting (XSS) vulnerability in Label Studio

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
2.7k
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2023-47115
5.4
CVSShigh
Exploitable remotely over the internet · no authentication required · user interaction needed.

Label Studio is an a popular open source data labeling tool. Versions prior to 1.9.2 have a cross-site scripting (XSS) vulnerability that could be exploited when an authenticated user uploads a crafted image file for their avatar that gets rendered as a HTML file on the website. Executing arbitrary JavaScript could result in an attacker performing malicious actions on Label Studio users if they visit the crafted avatar image. For an example, an attacker can craft a JavaScript payload that adds a new Django Super Administrator user if a Django administrator visits the image. The file `users/functions.py` lines 18-49 show that the only verification check is that the file is an image by extracting the dimensions from the file. Label Studio serves avatar images using Django's built-in `serve` view, which is not secure for production use according to Django's documentation. The issue with the Django `serve` view is that it determines the `Content-Type` of the response by the file extension in the URL path. Therefore, an attacker can upload an image that contains malicious HTML code and name the file with a `.html` extension to be rendered as a HTML page. The only file extension validation is performed on the client-side, which can be easily bypassed. Version 1.9.2 fixes this issue. Other remediation strategies include validating the file extension on the server side, not in client-side code; removing the use of Django's `serve` view and implement a secure controller for viewing uploaded avatar images; saving file content in the database rather than on the filesystem to mitigate against other file related vulnerabilities; and avoiding trusting user controlled inputs.

Attack Vector
Network
Privileges Req.
None
User Interaction
Required
Affected
label-studioby HumanSignal
< 1.9.2
Updated Aug 22, 2026View on NVD →
Detail

The Label Studio is a data labeling tool used by organizations and individuals to annotate various forms of data. Widely recognized for its versatility, it supports text, audio, images, and video annotations, allowing diverse use across industries such as data science, machine learning, and artificial intelligence research. With an easy-to-use interface, it is a preferred choice among data scientists, researchers, and developers tasked with preparing datasets for training machine learning models. The platform is designed to enhance the productivity of teams handling large datasets by providing an efficient annotation and review environment. Its adaptability to a wide range of annotation tasks makes it a robust tool for creating high-quality labeled datasets. Label Studio integrates easily with popular machine learning frameworks and data processing scripts, ensuring seamless operation within various workflows.

The Cross-Site Scripting (XSS) vulnerability detected in Label Studio allows malicious actors to execute arbitrary JavaScript on users’ browsers. Such a security flaw emerges when a crafted image file, uploaded as an avatar by an authenticated user, is rendered as HTML containing malicious scripts. This flaw can empower attackers to perform unauthorized actions, such as stealing user cookies, altering webpage content, or even redirecting users to malicious sites. XSS vulnerabilities are particularly dangerous as they give attackers the potential to control affected users’ behavior on the website. Providing generally limitless scripting capabilities, successful exploitation can lead to significant breaches in user data confidentiality. It raises serious security implications and jeopardizes the integrity and trustworthiness of web interactions.

Technically, the vulnerability arises at the point where Label Studio handles file uploads for user avatars. The raw HTTP request allows for crafted image files to be uploaded, which are then interpreted and rendered as HTML. This error is exacerbated when such files contain embedded scripts that intend to exploit the website's users. The endpoint in question lacks sufficient validation checks to prevent the embedded scripts from executing. This oversight can be specifically targeted to execute any JavaScript, potentially compromising user interactions and data. Furthermore, as the vulnerability is contingent on users viewing a malicious avatar, it predicates significant risk upon common user behavior patterns on the platform.

Exploitation of this XSS vulnerability can result in dire consequences, ranging from data theft to unauthorized actions taken in the end-user's context. The breach enables attackers to impersonate users or hijack their sessions, leading to potential disclosure of confidential information. Additionally, the attacker could modify page contents, thus misleading end-users, and possibly propagating further attacks by redirecting users to malicious sites. The broader implications also include damaging the platform's reputability and user trust. In extreme cases, users' machines could be further compromised through additional scripts executed within the browser context.

REFERENCES

Solution Advice
  • Update Label Studio to version 1.9.2 or later to mitigate this vulnerability.
  • Ensure all user-uploaded content is thoroughly sanitized before rendering.
  • Implement security headers like Content Security Policy (CSP) to prevent script execution.
  • Regularly audit and test for vulnerabilities to maintain security integrity.
  • Instruct users about potential dangers of uploading untrusted files.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.