# CVE-2023-43791: Label Studio has Hardcoded Django `SECRET_KEY` that can be Abused to Forge Session Tokens

Source: https://junglewise.ai/threats/cve-2023-43791-label-studio-has-hardcoded-django-secret-key-that-can-be-abused  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-11-09  
License: CC BY 4.0 with a link back

CVE-2023-43791 · Severity: low · CVSS 3.1 · Published 2023-11-09

Label Studio is a multi-type data labeling and annotation tool with standardized output format. There is a vulnerability that can be chained within the ORM Leak vulnerability to impersonate any account on Label Studio. An attacker could exploit these vulnerabilities to escalate their privileges from a low privilege user to a Django Super Administrator user. The vulnerability was found to affect versions before `1.8.2`, where a patch was introduced.

Technologies: [label-studio (PyPI)](https://junglewise.ai/threats/technologies/label-studio). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-43791 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-43791 being exploited in the wild.

**How severe is CVE-2023-43791?** Low severity, with a CVSS score of 3.1, published 9 November 2023.

**Which products and versions are affected?** label-studio (PyPI) ECOSYSTEM:introduced=0,fixed=1.8.2, GIT:introduced=0,fixed=3d06c5131c15600621e08b06f07d976887cde81b|ECOSYSTEM:introduced=0,fixed=1.8.2.

**Is there a fix for CVE-2023-43791?** Yes. label-studio (PyPI): upgrade to 1.8.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-43791?** Check whether you run label-studio (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- label-studio (PyPI): upgrade to 1.8.2 or later

  ```sh
  pip install "label-studio>=1.8.2"
  ```


## Affected products

- label-studio (PyPI) ECOSYSTEM:introduced=0,fixed=1.8.2, GIT:introduced=0,fixed=3d06c5131c15600621e08b06f07d976887cde81b|ECOSYSTEM:introduced=0,fixed=1.8.2

## Identifiers

- CVE-2023-43791
- GHSA-f475-x83m-rx5m
- PYSEC-2023-274

## Related threats

- [Label Studio stored XSS in custom_hotkeys with account takeover](https://junglewise.ai/threats/cve-2026-22033-label-studio-stored-xss-in-custom-hotkeys-with-account-takeover)
- [PYSEC-2026-1503 - Label Studio allows Server-Side Request Forgery in the S3 Storage Endpoint](https://junglewise.ai/threats/cve-2025-25297-label-studio-allows-server-side-request-forgery-in-the-s3-storage)
- [PYSEC-2026-1504 - Label Studio allows Cross-Site Scripting (XSS) via GET request to `/projects/upload-example` endpoint](https://junglewise.ai/threats/cve-2025-25296-label-studio-allows-cross-site-scripting-xss-via-get-request-to)
- [HumanSignal Label Studio reflected XSS in label_config parameter](https://junglewise.ai/threats/cve-2025-47783-humansignal-label-studio-reflected-xss-in-label-config-parameter)
- [Label Studio vulnerable to Cross-site Scripting if `<Choices>` or `<Labels>` are used in labeling config](https://junglewise.ai/threats/cve-2024-26152-label-studio-vulnerable-to-cross-site-scripting-if-choices-or)
