{"id":"CVE-2025-25296","aliases":["CVE-2025-25296","GHSA-wpq5-3366-mqw4","PYSEC-2026-1504"],"related":[],"kind":"vulnerability","state":"published","title":"Label Studio allows Cross-Site Scripting (XSS) via GET request to `/projects/upload-example` endpoint","summary":"Label Studio is an open source data labeling tool. Prior to version 1.16.0, Label Studio's `/projects/upload-example` endpoint allows injection of arbitrary HTML through a `GET` request with an appropriately crafted `label_config` query parameter. By crafting a specially formatted XML label config with inline task data containing malicious HTML/JavaScript, an attacker can achieve Cross-Site Scripting (XSS). While the application has a Content Security Policy (CSP), it is only set in report-only mode, making it ineffective at preventing script execution. The vulnerability exists because the upload-example endpoint renders user-provided HTML content without proper sanitization on a GET request. This allows attackers to inject and execute arbitrary JavaScript in victims' browsers by getting them to visit a maliciously crafted URL. This is considered vulnerable because it enables attackers to execute JavaScript in victims' contexts, potentially allowing theft of sensitive data, session hijacking, or other malicious actions. Version 1.16.0 contains a patch for the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Label Studio is an open source data labeling tool. Prior to version 1.16.0, Label Studio's `/projects/upload-example` endpoint allows injection of arbitrary HTML through a `GET` request with an appropriately crafted `label_config` query parameter. By crafting a specially formatted XML label config with inline task data containing malicious HTML/JavaScript, an attacker can achieve Cross-Site Scripting (XSS). While the application has a Content Security Policy (CSP), it is only set in report-only mode, making it ineffective at preventing script execution. The vulnerability exists because the upload-example endpoint renders user-provided HTML content without proper sanitization on a GET request. This allows attackers to inject and execute arbitrary JavaScript in victims' browsers by getting them to visit a maliciously crafted URL. This is considered vulnerable because it enables attackers to execute JavaScript in victims' contexts, potentially allowing theft of sensitive data, session hijacking, or other malicious actions. Version 1.16.0 contains a patch for the issue.","source":"cvelist"},{"lang":"en","text":"## Description\nLabel Studio's `/projects/upload-example` endpoint allows injection of arbitrary HTML through a `GET` request with an appropriately crafted `label_config` query parameter. By crafting a specially formatted XML label config with inline task data containing malicious HTML/JavaScript, an attacker can achieve Cross-Site Scripting (XSS). While the application has a Content Security Policy (CSP), it is only set in report-only mode, making it ineffective at preventing script execution.\n\nThe vulnerability exists because the upload-example endpoint renders user-provided HTML content without proper sanitization on a GET request. This allows attackers to inject and execute arbitrary JavaScript in victims' browsers by getting them to visit a maliciously crafted URL.\n\nThis is considered vulnerable because it enables attackers to execute JavaScript in victims' contexts, potentially allowing theft of sensitive data, session hijacking, or other malicious actions.\n\n## Steps to reproduce\n1. Create a malicious label config that includes an XSS payload in embedded task data:\n\n```xml\n<View><!-- {\"data\": {\"text\": \"<div><img src=x\nonerror=eval(atob(`YWxlcnQoIlhTUyIp`))></div>\"}} --><HyperText name=\"text\"\nvalue=\"$text\"/></View>\n```\n\n\n2. URL encode the payload and access the following URL:\n\n- http://app/projects/upload-example/?label_config=%3CView%3E%3C!--%20{%22data%22:%20{%22text%22:%20%22%3Cdiv%3E%3Cimg%20src=x%20onerror=eval(atob(`YWxlcnQoIlhTUyIp`))%3E%3C/div%3E%22}}%20--%3E%3CHyperText%20name=%22text%22%20value=%22$text%22/%3E%3C/View%3E\n\nWhen executed, the payload causes the application to render an HTML page containing an img tag that fails to load, triggering the onerror event handler which executes base64-decoded JavaScript, demonstrating successful XSS execution in the victim's browser.\n   \n## Mitigations\n- Enable the Content Security Policy in enforcement mode instead of report-only mode to actively block unauthorized script execution\n- Deprecate the `GET` behavior at the `example-config` endpoint since it's not used \n\n## Impact\nThe vulnerability requires no special privileges and can be exploited by getting a victim to visit a crafted URL. The impact is high as it allows arbitrary JavaScript execution in victims' browsers, potentially exposing sensitive data or enabling account takeover through session theft.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Label Studio es una herramienta de etiquetado de datos de código abierto. Antes de la versión 1.16.0, el punto de conexión `/projects/upload-example` de Label Studio permite la inyección de HTML arbitrario a través de una solicitud `GET` con un parámetro de consulta `label_config` manipulado de forma adecuada. Al manipular una configuración de etiqueta XML con un formato especial con datos de tareas en línea que contienen HTML/JavaScript malicioso, un atacante puede lograr Cross-Site Scripting (XSS). Si bien la aplicación tiene una Política de seguridad de contenido (CSP), solo está configurada en modo de solo informes, lo que la hace ineficaz para evitar la ejecución de scripts. La vulnerabilidad existe porque el punto de conexión upload-example muestra contenido HTML proporcionado por el usuario sin la depuración adecuada en una solicitud GET. Esto permite a los atacantes inyectar y ejecutar JavaScript arbitrario en los navegadores de las víctimas al hacer que visiten una URL manipulada de forma maliciosa. Esto se considera vulnerable porque permite a los atacantes ejecutar JavaScript en los contextos de las víctimas, lo que potencialmente permite el robo de datos confidenciales, el secuestro de sesiones u otras acciones maliciosas. La versión 1.16.0 contiene un parche para el problema.","source":"nvd"}],"published":"2025-02-14T15:23:03.000Z","modified":"2026-07-07T17:56:12.881Z","severity":{"scorer":"GitHub_M","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"},"severities":[{"scorer":"GitHub_M","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":"GitHub","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.16.0","status":"affected"}],"vendor":"HumanSignal","product":"label-studio","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.16.0"}],"ecosystem":"PyPI","package":"label-studio","purl":"pkg:pypi/label-studio","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.16.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.16.0"}],"ecosystem":"PyPI","package":"label-studio","purl":"pkg:pypi/label-studio","source":"pysec"}],"references":[{"url":"https://github.com/HumanSignal/label-studio/security/advisories/GHSA-wpq5-3366-mqw4","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/HumanSignal/label-studio/commit/8cf6958e1e27ef6a03ed287e674470975d340885","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25296","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/HumanSignal/label-studio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/label-studio","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-wpq5-3366-mqw4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-02-14T20:01:11.676Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-25296","url":"https://www.cve.org/CVERecord?id=CVE-2025-25296","licence":"CVE Terms of Use","modified":"2025-02-14T20:01:37.255Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wpq5-3366-mqw4","url":"https://github.com/advisories/GHSA-wpq5-3366-mqw4","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:12.881Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-25296","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25296","licence":"Public domain","modified":"2026-06-17T09:00:38.237Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1504","url":"https://osv.dev/vulnerability/PYSEC-2026-1504","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:16.440Z"}],"updatedAt":"2026-11-25T22:58:54.116Z","epss":{"score":0.02009,"percentile":0.81422,"date":"2026-12-01T12:00:22.000Z"}}