CVE-2024-26152: Label Studio vulnerable to Cross-site Scripting if `<Choices>` or `<Labels>` are used in labeling config
Summary 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 or Labels tag, resulting in an XSS vulnerability. Details Need permission to use the "data import" function. This was reproduced on Label Studio 1.10.1. PoC 1. Create a project. 2. Upload a file containing the payload using the "Upload Files" function.
Published Feb 22, 2024 · Updated Mar 24, 2026
Affected packages
label-studio
- Ecosystem
- PyPI
- Affected
- < 1.11.0
- Fixed in
- 1.11.0
- Check
pip show label-studio
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
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` or `Labels` tag, resulting in an XSS vulnerability.
Details
Need permission to use the "data import" function. This was reproduced on Label Studio 1.10.1.
PoC
- Create a project.
Create a project
- Upload a file containing the payload using the "Upload Files" function.
2 Upload a file containing the payload using the Upload Files function 3 complete
The following are the contents of the files used in the PoC
{
"data": {
"prompt": "labelstudio universe image",
"images": [
{
"value": "id123#0",
"style": "margin: 5px",
"html": ""
}
]
}
}- Select the text-to-image generation labeling template of Ranking and scoring
3 Select the text-to-image generation labelling template for Ranking and scoring 5 save
- Select a task
4 Select a task
- Check that the script is running
5 Check that the script is running
Impact
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.
Credited to isacaya.
References
- https://github.com/HumanSignal/label-studio/security/advisories/GHSA-6xv9-957j-qfhg
- https://github.com/HumanSignal/label-studio/pull/5232
- https://github.com/HumanSignal/label-studio/commit/5df9ae3828b98652e9fa290a19f4deedf51ef6c8
- https://github.com/HumanSignal/label-studio/releases/tag/1.11.0
- https://nvd.nist.gov/vuln/detail/CVE-2024-26152
- https://github.com/pypa/advisory-database/tree/main/vulns/label-studio/PYSEC-2024-249.yaml
- https://github.com/advisories/GHSA-6xv9-957j-qfhg
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-22033
Label Studio is vulnerable to full account takeover by chaining Stored XSS + IDOR in User Profile via custom_hotkeys field
high8.6No fixJan 12, 2026CVE-2025-47783
label-studio vulnerable to Cross-Site Scripting (Reflected) via the label_config parameter.
high7.6May 15, 2025CVE-2025-25296
Label Studio allows Cross-Site Scripting (XSS) via GET request to `/projects/upload-example` endpoint
medium6.1Feb 14, 2025CVE-2025-25297
Label Studio allows Server-Side Request Forgery in the S3 Storage Endpoint
high8.6Feb 14, 2025CVE-2023-47116
Label Studio SSRF on Import Bypassing `SSRF_PROTECTION_ENABLED` Protections
medium5.3Jan 31, 2024CVE-2023-47115
Cross-site Scripting Vulnerability on Avatar Upload
high7.1Jan 24, 2024
