Label Studio vulnerable to full account takeover by chaining Stored XSS + IDOR in User Profile via custom_hotkeys field
Description
Label Studio is a multi-type data labeling and annotation tool. In 1.22.0 and earlier, a persistent stored cross-site scripting (XSS) vulnerability exists in the custom_hotkeys functionality of the application. An authenticated attacker (or one who can trick a user/administrator into updating their custom_hotkeys) can inject JavaScript code that executes in other users’ browsers when those users load any page using the templates/base.html template. Because the application exposes an API token endpoint (/api/current-user/token) to the browser and lacks robust CSRF protection on some API endpoints, the injected script may fetch the victim’s API token or call token reset endpoints — enabling full account takeover and unauthorized API access.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
label-studioPyPI | <= 1.22.0 | — |
Affected products
1- Range: v.0.1.0, v.0.1.1, v.0.1.2, …
Patches
1ea2462bf042bfix: BROS-664: Fix XSS via script injection in custom hotkeys (#9084)
1 file changed · +1 −2
label_studio/templates/base.html+1 −2 modified@@ -101,8 +101,7 @@ </template> <script id="app-settings" nonce="{{request.csp_nonce}}"> - - var __customHotkeys = {{ user.custom_hotkeys|json_dumps_ensure_ascii|safe }}; + var __customHotkeys = {{ user.custom_hotkeys|json_dumps_ensure_ascii|escape_lt_gt|safe }}; // Filter custom hotkeys for editor-specific ones var editorCustomHotkeys = {};
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-2mq9-hm29-8qchghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-22033ghsaADVISORY
- github.com/HumanSignal/label-studio/commit/ea2462bf042bbf370b79445d02a205fbe547b505ghsax_refsource_MISCWEB
- github.com/HumanSignal/label-studio/pull/9084ghsax_refsource_MISCWEB
- github.com/HumanSignal/label-studio/releases/tag/nightlyghsaWEB
- github.com/HumanSignal/label-studio/security/advisories/GHSA-2mq9-hm29-8qchghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.