Cross-site Scripting Affecting label-studio package, versions [,1.9.2.post0)
Threat Intelligence
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
Introduced: 23 Jan 2024
CVE-2023-47115 Open this link in a new tabHow 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
Validate the file extension on the server side, not in client-side code.
Consider saving file content in the database rather than on the filesystem to mitigate against other file related vulnerabilities.
Avoid trusting user controlled inputs.