CVE-2024-26152
Severity CVSS v4.0:
Pending analysis
Type:
CWE-79
Cross-Site Scripting (XSS)
Publication date:
22/02/2024
Last modified:
16/05/2025
Description
### Summary<br />
On all Label Studio versions prior to 1.11.0, data imported via file upload feature is not properly sanitized prior to being rendered within a [`Choices`](https://labelstud.io/tags/choices) or [`Labels`](https://labelstud.io/tags/labels) tag, resulting in an XSS vulnerability.<br />
<br />
### Details<br />
Need permission to use the "data import" function. This was reproduced on Label Studio 1.10.1.<br />
<br />
### PoC<br />
<br />
1. Create a project.<br />
<br />
<br />
2. Upload a file containing the payload using the "Upload Files" function.<br />
<br />
<br />
<br />
The following are the contents of the files used in the PoC<br />
```<br />
{<br />
"data": {<br />
"prompt": "labelstudio universe image",<br />
"images": [<br />
{<br />
"value": "id123#0",<br />
"style": "margin: 5px",<br />
"html": ""<br />
}<br />
]<br />
}<br />
}<br />
```<br />
<br />
3. Select the text-to-image generation labeling template of Ranking and scoring<br />
<br />
<br />
<br />
4. Select a task<br />
<br />
<br />
5. Check that the script is running<br />
<br />
<br />
### Impact<br />
Malicious scripts can be injected into the code, and when linked with vulnerabilities such as CSRF, it can cause even greater damage. In particular, It can become a source of further attacks, especially when linked to social engineering.<br />
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:humansignal:label_studio:*:*:*:*:*:*:*:* | 1.11.0 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://github.com/HumanSignal/label-studio/commit/5df9ae3828b98652e9fa290a19f4deedf51ef6c8
- https://github.com/HumanSignal/label-studio/pull/5232
- https://github.com/HumanSignal/label-studio/releases/tag/1.11.0
- https://github.com/HumanSignal/label-studio/security/advisories/GHSA-6xv9-957j-qfhg
- https://github.com/HumanSignal/label-studio/commit/5df9ae3828b98652e9fa290a19f4deedf51ef6c8
- https://github.com/HumanSignal/label-studio/pull/5232
- https://github.com/HumanSignal/label-studio/releases/tag/1.11.0
- https://github.com/HumanSignal/label-studio/security/advisories/GHSA-6xv9-957j-qfhg



