CVE-2024-26152
Label Studio vulnerable to Cross-site Scripting if `<Choices>` or `<Labels>` are used in labeling config
Also known as GHSA-6xv9-957j-qfhg, PYSEC-2024-249
Mitigation
- Upgrade label-studio to 1.11.0 or later.
Who should check
- Projects that depend on PyPI package label-studio (< 1.11.0)
- Anyone running HumanSignal label-studio < 1.11.0
Vulnerability facts
- Affected
- label-studio < 1.11.0
- Fixed in
- 1.11.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 2.53% chance of exploitation in 30 days (percentile 86, 2026-11-26)
- CWE
- CWE-79
- Modified
Description
### 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`](https://labelstud.io/tags/choices) or [`Labels`](https://labelstud.io/tags/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.   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": "<img width='400' src='https://labelstud.io/_astro/images-tab.64279c16_ZaBSvC.avif' onload=alert(document.cookie)>" } ] } } ``` 3. Select the text-to-image generation labeling template of Ranking and scoring   4. Select a task  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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI label-studio | < 1.11.0 | 1.11.0 | osv |
| HumanSignal label-studio | < 1.11.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-26152. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-26152.md Affected: label-studio < 1.11.0 Fixed in: 1.11.0 Steps: 1. Search this machine and project for label-studio (PyPI), HumanSignal label-studio: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2024-26152 being exploited?
There is no confirmed exploitation: CVE-2024-26152 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-26152?
Medium: CVSS 4.7 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2024-26152?
label-studio < 1.11.0.
Is there a fix for CVE-2024-26152?
Yes. Fixed in 1.11.0. Upgrade label-studio to 1.11.0 or later.
How do I check if I'm affected by CVE-2024-26152?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.