CVE-2024-26152 – Label Studio vulnerable to Cross-site Scripting if `<Choices>` or `<Labels>` are used in labeling config
https://notcve.org/view.php?id=CVE-2024-26152
### 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. ![Create a project](https://github.com/HumanSignal/label-studio/assets/3943358/9b1536ad-feac-4238-a1bd-ca9b1b798673) 2. Upload a file containing the payload using the "Upload Files" function. ! • https://github.com/HumanSignal/label-studio/commit/5df9ae3828b98652e9fa290a19f4deedf51ef6c8 https://github.com/HumanSignal/label-studio/pull/5232 https://github.com/HumanSignal/label-studio/releases/tag/1.11.0 https://github.com/HumanSignal/label-studio/security/advisories/GHSA-6xv9-957j-qfhg • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') •