Skip to content

CVE-2024-26152 Label Studio vulnerable to Cross-site Scripting if `<Choices>` or `<Labels>` are used in labeling config

MediumCVSS 6.1 EPSS 2.2%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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 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.
    Image: Create a project

  2. Upload a file containing the payload using the "Upload Files" function.
    Image: 2 Upload a file containing the payload using the Upload Files function
    Image: 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": "<img width='400' src='https://labelstud.io/_astro/images-tab.64279c16_ZaBSvC.avif' onload=alert(document.cookie)>"
      }
    ]
  }
}
  1. Select the text-to-image generation labeling template of Ranking and scoring
    Image: 3 Select the text-to-image generation labelling template for Ranking and scoring
    Image: 5 save

  2. Select a task
    Image: 4 Select a task

  3. Check that the script is running
    Image: 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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
HumanSignal Label Studio < 1.11.0 1.11.0 Fixed
pypi label-studio(PyPI) < 1.11.0; = 0.4.1; = 0.4.2; = 0.4.3 +122 more 1.11.0 Fixed
HumanSignal label-studio = < 1.11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi label-studio(PyPI) < 1.11.0 1.11.0
pypi label-studio(PyPI) = 0.4.1 No fix listed
pypi label-studio(PyPI) = 0.4.2 No fix listed
pypi label-studio(PyPI) = 0.4.3 No fix listed
pypi label-studio(PyPI) = 0.4.4 No fix listed
pypi label-studio(PyPI) = 0.4.4.post1 No fix listed
pypi label-studio(PyPI) = 0.4.4.post2 No fix listed
pypi label-studio(PyPI) = 0.4.5 No fix listed
pypi label-studio(PyPI) = 0.4.6 No fix listed
pypi label-studio(PyPI) = 0.4.6.post1 No fix listed
pypi label-studio(PyPI) = 0.4.6.post2 No fix listed
pypi label-studio(PyPI) = 0.4.7 No fix listed
pypi label-studio(PyPI) = 0.4.8 No fix listed
pypi label-studio(PyPI) = 0.5.0 No fix listed
pypi label-studio(PyPI) = 0.5.1 No fix listed
pypi label-studio(PyPI) = 0.6.0 No fix listed
pypi label-studio(PyPI) = 0.6.1 No fix listed
pypi label-studio(PyPI) = 0.7.0 No fix listed
pypi label-studio(PyPI) = 0.7.1 No fix listed
pypi label-studio(PyPI) = 0.7.2 No fix listed
pypi label-studio(PyPI) = 0.7.3 No fix listed
pypi label-studio(PyPI) = 0.7.4 No fix listed
pypi label-studio(PyPI) = 0.7.4.post0 No fix listed
pypi label-studio(PyPI) = 0.7.4.post1 No fix listed
pypi label-studio(PyPI) = 0.7.5.post1 No fix listed
Show 103 more
ProductAffected versionsFixed in
pypi label-studio(PyPI) = 0.7.5.post2 No fix listed
pypi label-studio(PyPI) = 0.8.0 No fix listed
pypi label-studio(PyPI) = 0.8.0.post0 No fix listed
pypi label-studio(PyPI) = 0.8.1 No fix listed
pypi label-studio(PyPI) = 0.8.1.post0 No fix listed
pypi label-studio(PyPI) = 0.8.2 No fix listed
pypi label-studio(PyPI) = 0.8.2.post0 No fix listed
pypi label-studio(PyPI) = 0.9.0 No fix listed
pypi label-studio(PyPI) = 0.9.0.post2 No fix listed
pypi label-studio(PyPI) = 0.9.0.post3 No fix listed
pypi label-studio(PyPI) = 0.9.0.post4 No fix listed
pypi label-studio(PyPI) = 0.9.0.post5 No fix listed
pypi label-studio(PyPI) = 0.9.1 No fix listed
pypi label-studio(PyPI) = 0.9.1.post0 No fix listed
pypi label-studio(PyPI) = 0.9.1.post1 No fix listed
pypi label-studio(PyPI) = 0.9.1.post2 No fix listed
pypi label-studio(PyPI) = 1.0.0 No fix listed
pypi label-studio(PyPI) = 1.0.0.post0 No fix listed
pypi label-studio(PyPI) = 1.0.0.post1 No fix listed
pypi label-studio(PyPI) = 1.0.0.post2 No fix listed
pypi label-studio(PyPI) = 1.0.0.post3 No fix listed
pypi label-studio(PyPI) = 1.0.1 No fix listed
pypi label-studio(PyPI) = 1.0.2 No fix listed
pypi label-studio(PyPI) = 1.0.2.post0 No fix listed
pypi label-studio(PyPI) = 1.1.0 No fix listed
pypi label-studio(PyPI) = 1.1.0rc0 No fix listed
pypi label-studio(PyPI) = 1.1.1 No fix listed
pypi label-studio(PyPI) = 1.10.0 No fix listed
pypi label-studio(PyPI) = 1.10.0.post0 No fix listed
pypi label-studio(PyPI) = 1.10.1 No fix listed
pypi label-studio(PyPI) = 1.2 No fix listed
pypi label-studio(PyPI) = 1.3 No fix listed
pypi label-studio(PyPI) = 1.3.post0 No fix listed
pypi label-studio(PyPI) = 1.3.post1 No fix listed
pypi label-studio(PyPI) = 1.4 No fix listed
pypi label-studio(PyPI) = 1.4.1 No fix listed
pypi label-studio(PyPI) = 1.4.1.post0 No fix listed
pypi label-studio(PyPI) = 1.4.1.post1 No fix listed
pypi label-studio(PyPI) = 1.5.0 No fix listed
pypi label-studio(PyPI) = 1.5.0.post0 No fix listed
pypi label-studio(PyPI) = 1.6.0 No fix listed
pypi label-studio(PyPI) = 1.7.0 No fix listed
pypi label-studio(PyPI) = 1.7.1 No fix listed
pypi label-studio(PyPI) = 1.7.2 No fix listed
pypi label-studio(PyPI) = 1.7.3 No fix listed
pypi label-studio(PyPI) = 1.8.0 No fix listed
pypi label-studio(PyPI) = 1.8.1 No fix listed
pypi label-studio(PyPI) = 1.8.2 No fix listed
pypi label-studio(PyPI) = 1.8.2.post0 No fix listed
pypi label-studio(PyPI) = 1.8.2.post1 No fix listed
pypi label-studio(PyPI) = 1.9.0 No fix listed
pypi label-studio(PyPI) = 1.9.1 No fix listed
pypi label-studio(PyPI) = 1.9.1.post0 No fix listed
pypi label-studio(PyPI) = 1.9.2 No fix listed
pypi label-studio(PyPI) = 1.9.2.post0 No fix listed
pypi label-studio(PyPI) = v1.4.1 No fix listed
pypi label-studio(PyPI) = v1.4.0 No fix listed
pypi label-studio(PyPI) = v1.3.0 No fix listed
pypi label-studio(PyPI) = v1.2.0 No fix listed
pypi label-studio(PyPI) = v1.1.1 No fix listed
pypi label-studio(PyPI) = v1.1.0 No fix listed
pypi label-studio(PyPI) = v1.0.2 No fix listed
pypi label-studio(PyPI) = v1.0.1 No fix listed
pypi label-studio(PyPI) = v1.0.0 No fix listed
pypi label-studio(PyPI) = v0.9.1.post1 No fix listed
pypi label-studio(PyPI) = v0.9.1.post0 No fix listed
pypi label-studio(PyPI) = v0.9.0.post5 No fix listed
pypi label-studio(PyPI) = v0.9.0.post4 No fix listed
pypi label-studio(PyPI) = v0.9.0.post3 No fix listed
pypi label-studio(PyPI) = v0.9.0 No fix listed
pypi label-studio(PyPI) = v0.8.2 No fix listed
pypi label-studio(PyPI) = v0.8.1 No fix listed
pypi label-studio(PyPI) = v0.8.0 No fix listed
pypi label-studio(PyPI) = v0.7.5.post0 No fix listed
pypi label-studio(PyPI) = v0.7.3 No fix listed
pypi label-studio(PyPI) = v0.7.2 No fix listed
pypi label-studio(PyPI) = v0.7.1 No fix listed
pypi label-studio(PyPI) = v0.7.0 No fix listed
pypi label-studio(PyPI) = v0.6.1 No fix listed
pypi label-studio(PyPI) = v0.6.0 No fix listed
pypi label-studio(PyPI) = v0.5.1 No fix listed
pypi label-studio(PyPI) = v0.4.8 No fix listed
pypi label-studio(PyPI) = v0.4.7 No fix listed
pypi label-studio(PyPI) = v0.4.6 No fix listed
pypi label-studio(PyPI) = v0.4.5 No fix listed
pypi label-studio(PyPI) = v0.4.4 No fix listed
pypi label-studio(PyPI) = v0.4.0 No fix listed
pypi label-studio(PyPI) = v0.3.0 No fix listed
pypi label-studio(PyPI) = v0.2.2 No fix listed
pypi label-studio(PyPI) = v.0.2.1-8 No fix listed
pypi label-studio(PyPI) = v.0.2.1-5 No fix listed
pypi label-studio(PyPI) = v.0.2.1-4 No fix listed
pypi label-studio(PyPI) = v.0.2.1-3 No fix listed
pypi label-studio(PyPI) = v.0.2.1-2 No fix listed
pypi label-studio(PyPI) = v.0.2.0 No fix listed
pypi label-studio(PyPI) = v.0.1.6 No fix listed
pypi label-studio(PyPI) = v.0.1.5 No fix listed
pypi label-studio(PyPI) = v.0.1.4 No fix listed
pypi label-studio(PyPI) = v.0.1.2 No fix listed
pypi label-studio(PyPI) = v.0.1.1 No fix listed
pypi label-studio(PyPI) = v.0.1.0 No fix listed
HumanSignal label-studio = < 1.11.0 No fix listed
HumanSignal Label Studio < 1.11.0 1.11.0

References