Label Studio XSS Vulnerability on Data Import
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
Label Studio, an open source data labeling tool had a remote import feature allowed users to import data from a remote web source, that was downloaded and could be viewed on the website. Prior to version 1.10.1, this feature could had been abused to download a HTML file that executed malicious JavaScript code in the context of the Label Studio 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. `data_import/uploader.py` lines 125C5 through 146 showed that if a URL passed the server side request forgery verification checks, the contents of the file would be downloaded using the filename in the URL. The downloaded file path could then be retrieved by sending a request to `/api/projects/{project_id}/file-uploads?ids=[{download_id}]` where `{project_id}` was the ID of the project and `{download_id}` was the ID of the downloaded file. Once the downloaded file path was retrieved by the previous API endpoint, `data_import/api.py`lines 595C1 through 616C62 demonstrated that the `Content-Type` of the response was determined by the file extension, since `mimetypes.guess_type` guesses the `Content-Type` based on the file extension. Since the `Content-Type` was determined by the file extension of the downloaded file, an attacker could import in a `.html` file that would execute JavaScript when visited. Version 1.10.1 contains a patch for this issue. Other remediation strategies are also available. For all user provided files that are downloaded by Label Studio, set the `Content-Security-Policy: sandbox;` response header when viewed on the site. The `sandbox` directive restricts a page's actions to prevent popups, execution of plugins and scripts and enforces a `same-origin` policy. Alternatively, restrict the allowed file extensions that may be downloaded.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| HumanSignal | label-studio | before 1.10.1 | 1.10.1 | Patch available | CNA |
| — | label-studio (PyPI) | before 1.10.1 | 1.10.1 | Patch available | GHSA-fq23-g58m-799r |
- label-studio VendorHumanSignal Affected before 1.10.1 Fixed in 1.10.1 Patch available CNA
- label-studio (PyPI) Vendor— Affected before 1.10.1 Fixed in 1.10.1 Patch available GHSA-fq23-g58m-799r
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:humansignal:label_studio:*:*:*:*:*:*:*:* | before 1.10.1 | Vulnerable | HumanSignal |
- cpe:2.3:a:humansignal:label_studio:*:*:*:*:*:*:*:* Versions before 1.10.1 Vulnerable ·HumanSignal
Remediation
- Fix · CNA label-studio (HumanSignal) Fixed in 1.10.1
- Fix · GHSA-fq23-g58m-799r label-studio (PyPI) Fixed in 1.10.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-23633
- 2026-10-03 Alias added: GHSA-fq23-g58m-799r
References
Advisory 2
Other 5
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
- https://github.com/HumanSignal/label-studio/blob/1.9.2.post0/label_studio/data_import/api.py#L595C1-L616C62
- https://github.com/HumanSignal/label-studio/blob/1.9.2.post0/label_studio/data_import/uploader.py#L125C5-L146
- https://github.com/HumanSignal/label-studio
- https://github.com/pypa/advisory-database/tree/main/vulns/label-studio/PYSEC-2024-128.yaml
More HumanSignal Label Studio vulnerabilities
- TI-2023-23482 Label Studio has Hardcoded Django `SECRET_KEY` that can be Abused to Forge Session Tokens CVSS 3.1CRITICAL 9.8
- TI-2025-18951 Label Studio allows Server-Side Request Forgery in the S3 Storage Endpoint CVSS 3.1HIGH 8.6
- TI-2023-25457 Object Relational Mapper Leak Vulnerability in Filtering Task in Label Studio CVSS 3.1HIGH 7.5
- TI-2026-17727 Label Studio vulnerable to full account takeover by chaining Stored XSS + IDOR in User Profile via custom_hotkeys field CVSS 4.0HIGH 8.6
- TI-2025-30248 label-studio vulnerable to Cross-Site Scripting (Reflected) via the label_config parameter. CVSS 4.0HIGH 7.6
- TI-2023-25455 Label Studio XSS Vulnerability on Avatar Upload CVSS 3.1HIGH 7.1
Sources
- CVE-2024-23633 · CVE Program
- CVE-2024-23633 · NVD
- FIRST EPSS
- GHSA-fq23-g58m-799r · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences