CVE-2025-25296
MEDIUM NUCLEILabel Studio < 1.16.0 - Cross-Site Scripting via label_config Query Parameter
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-25296. PoCs published by math-x-io. A Nuclei detection template is also available.
AI-analyzed exploit summary This repository contains a functional Proof of Concept (PoC) for CVE-2025-25296, demonstrating a Cross-Site Scripting (XSS) vulnerability in Label Studio's `/projects/upload-example` endpoint. The exploit crafts a malicious URL with an embedded JavaScript payload to trigger an XSS alert in the victim's browser.
Description
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.
Exploits (1)
This repository contains a functional Proof of Concept (PoC) for CVE-2025-25296, demonstrating a Cross-Site Scripting (XSS) vulnerability in Label Studio's `/projects/upload-example` endpoint. The exploit crafts a malicious URL with an embedded JavaScript payload to trigger an XSS alert in the victim's browser.
Nuclei Templates (1)
title:"Label Studio"
title="Label Studio"
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N